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?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-08-08 09:06:331166browse

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

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