For example, I have something like this in the database: <b>aaaaaa</b>
;
I take out the data and use smarty to achieve code separation, but when I put it on smarty, the data is parsed according to html, and my The expectation is to display the data as it is, but I can’t find the answer on the search engine. I have been using laravel’s blade template before, so when I encounter similar problems, I come to ask the seniors who use smarty for advice
For example, I have something like this in the database: <b>aaaaaa</b>
;
I take out the data and use smarty to achieve code separation, but when I put it on smarty, the data is parsed according to html, and my The expectation is to display the data as it is, but I can’t find the answer on the search engine. I have been using laravel’s blade template before, so when I encounter similar problems, I come to ask the seniors who use smarty for advice
<code> {$output | escape} </code>
In smarty, the output content is followed by escape to escape html tags.