I'm a newbie of Laravel. When I made the layout for my app, I want to display html content when use Laravel's HTML helper. Example {{ HTML::link('#','User <b class="caret"></b>'); }}
{{ HTML::link('#','User <b class="caret"></b>'); }}
but it was render as
Login <b class="caret"></b>
.
How I can display HTML content with Laravel's HTML helper. Please help me!!!
I'm unsure if this is your desired output since you did not indicate it.
But anyway
{{ HTML::link('#','User', array('class' => 'caret')) }}
Basically these are the parameters accepted by HTML::link()
{{ HTML::link(url, title, [attributes as an array], secure)}}
See the API for further info
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.