Home  >  Article  >  Backend Development  >  smarty里面的strip_tags有allow吗?解决办法

smarty里面的strip_tags有allow吗?解决办法

WBOY
WBOYOriginal
2016-06-13 12:01:24886browse

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

.

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

"}这样出不来啊。
------解决方案--------------------
建议你还是在php处理完了再传给smarty吧。

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