Home > Backend Development > PHP Tutorial > Is there any way to automatically escape the template engine of thinkphp3.2?

Is there any way to automatically escape the template engine of thinkphp3.2?

WBOY
Release: 2016-08-08 09:06:33
Original
1095 people have browsed it

I don’t want to have to write
{$var|htmlentities}
like this every time I output content that needs to be escaped... Is there a quick way to escape the output?
Similar to laravel’s {{$var}} like this

Reply content:

I don’t want to have to write
{$var|htmlentities}
like this every time I output content that needs to be escaped... Is there a quick way to escape the output?
Similar to laravel’s {{$var}} like this

No, if there is, it is another template engine
You can consider porting blade to tp

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template