Reputation: 948
In Laravel 4.1, I want to echo:
<label for="name">Name <small>required</small></label>
This doesn't work:
{{ Form::label('name','Name <small>required</small>') }}
are automatically converted to code text…
Is there a way or do I have to skip Form::label and do it manually?
Upvotes: 2
Views: 3117
Reputation: 11
Try this:
{!! Html::decode(Form::label('name','Name <small>required</small>')) !!}
Upvotes: 0
Reputation: 1075
If you want to use a Html tag inside another by Laravel one you should use HTML::decode.
Correct code :
{{ HTML::decode(Form::label('name','Name <small>required</small>')) }}
Upvotes: 2