Home > Backend Development > PHP Tutorial > smarty里头的strip_tags有allow吗

smarty里头的strip_tags有allow吗

WBOY
Release: 2016-06-13 10:30:59
Original
864 people have browsed it

smarty里面的strip_tags有allow吗?
strip_tags(string,allow)
strip_tags() 函数剥去 HTML、XML 以及 PHP 的标签。
allow规定允许的标签。这些标签不会被删除。这样的话我可以只保留

.

但是在smarty里面应该怎么写?
{$content|strip_tags:"

"}这样出不来啊。

------解决方案--------------------
建议你还是在php处理完了再传给smarty吧。

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