How to put an HTML code in a label in Laravel?

6

When I try to do this:

{{ Form::label("nomecampo", "Descrição<em>*</em>", array("class" => "entrada")) }}

The tag enters the tag but is not interpreted correctly. See:

<label class="entrada" for="nomecampo">Descrição<em>*</em></label>
    
asked by anonymous 27.01.2014 / 16:20

1 answer

6

You should use the HTML :: decode () method to do this, try the following:

{{ HTML::decode(Form::label("nomecampo", "Descrição<em>*</em>", array("class" => "entrada")) ) }};
    
27.01.2014 / 17:25