caffeinated / menus

:pushpin: Menu generator package for the Laravel framework
https://caffeinatedpackages.com
132 stars 59 forks source link

Bad append and prepend #38

Closed myrrc closed 9 years ago

myrrc commented 9 years ago

Hello. I want to use in my project ->prepend as in the example ( ->prepend('') ) as html . But it results into plain text 2015-05-22 17-39-15

kaidesu commented 9 years ago

This is because by default, Laravel Blade escapes all data that's passed through. To render the HTML when echoing, use the {!! !!} syntax:

Hello, {!! $name !!}.

Read more here: http://laravel.com/docs/5.0/templates#other-blade-control-structures