Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想问一下有没有人熟悉smarty代码上的“h”命令?
<input type="hidden" name="category_id" value="<!--{$category_id|h}-->" />
h函数是什么意思?
h似乎不是 Smarty 标准修饰符或函数的一部分。当您导航到项目的 smarty 目录时,找到“plugins”目录并搜索文件“modifier.h.php”或“function.h.php”并查看其中的内容以了解它的作用。Smarty 附带了几个修饰符和函数,但您可以自由添加自己的,我猜从事同一项目的其他人(如果不是您)添加了此文件。
h