Support the ongoing development of Laravel.io →
posted 10 years ago
Blade

Just wondering if there is a solution here.. When I use the Form::label helper and add some HTML in the content in the example below: <?php echo Form::label('Enter List of Companies Worked before <small style="color: red;">required</small>'); ?> the content does not appear properly. My end result ends up looking something like this: required">Enter List Of Companies Worked Before <small Style="color: Red;">required</small>

Is there a solution to this? I could change everything to use the HTML way to display my labels but it would be a shame not to use the function that Laravel has provided.

Any ideas?

Last updated 3 years ago.
0
<?php echo HTML::decode(Form::label('Enter List of Companies Worked before <small style="color: red;">required</small>')); ?> 
Last updated 3 years ago.
0

This seems to have done the trick... Thanks.. :)

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

grafikkaos grafikkaos Joined 27 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.