Home  >  Article  >  Backend Development  >  PHP mysql database stores html code, how to parse it correctly when output to the browser, using the laravel framework

PHP mysql database stores html code, how to parse it correctly when output to the browser, using the laravel framework

WBOY
WBOYOriginal
2016-09-29 09:32:591217browse

HTML code stored in the database;

PHP mysql database stores html code, how to parse it correctly when output to the browser, using the laravel framework

How to correctly parse the style of the code currently output by the browser? ? ?
PHP mysql database stores html code, how to parse it correctly when output to the browser, using the laravel framework

Reply content:

HTML code stored in the database;

PHP mysql database stores html code, how to parse it correctly when output to the browser, using the laravel framework

How to correctly parse the style of the code currently output by the browser? ? ?
PHP mysql database stores html code, how to parse it correctly when output to the browser, using the laravel framework

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 !!}.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn