这是一个包含修饰器名称的数组,这些修饰器将默认地对每个模板变量进行修饰操作。
例如我们对每个变量都进行HTML编码,可以用array('escape:"htmlall"')
。
如果某个变量要避免这种默认的修饰操作,则需要加上“nofilter”的属性,例如{$var nofilter}
。
Comments
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
这是一个包含修饰器名称的数组,这些修饰器将默认地对每个模板变量进行修饰操作。
例如我们对每个变量都进行HTML编码,可以用array('escape:"htmlall"')
。
如果某个变量要避免这种默认的修饰操作,则需要加上“nofilter”的属性,例如{$var nofilter}
。