Home >Backend Development >PHP Tutorial >PHP mysql database stores html code, how to parse it correctly when output to the browser, using the laravel framework
HTML code stored in the database;
How to correctly parse the style of the code currently output by the browser? ? ?
HTML code stored in the database;
How to correctly parse the style of the code currently output by the browser? ? ?
The return value of the
{{ $xxx }} expression in the
blade template engine will be automatically passed to PHP's htmlentities function for processing to prevent XSS attacks. If you need to display unescaped data, you can use {!! $xxx !!}
.