Thursday, March 30, 2017

How to disable html entity encoding from laravel functions?

I have created a custom helper function in laravel like below.

function get_label($value = '') {
    return '<span class="label">' . $value . '</span>';
}

When I call the function from controller with value Hello to the function it returns encoded text &lt;span class="label"&gt;Hello&lt;/span&gt;

How to remove this encoding from the functions..



via noufalcep

Advertisement