This question already has an answer here:
I am trying to dynamically generate a table in laravel. However, when I generate the html is changes "<" (from <table>
, <tr>
and <td>
) into <
This means that it just prints out <table>
etc in the browser, rather than crafting a table.
How do I stop this conversion from happening?
</div>
By default, Blade {{ }}
statements are automatically sent through PHP's htmlentities function to prevent XSS attacks. If you do not want your data to be escaped, you may use the following syntax:
{!! $str!!}