Smarty escape修飾子
Smarty escape修飾子
{$変数|escape:"エスケープの種類を指定"}
■urlencode
{$var|escape:"url"}
■& " ' < > をエスケープ
{$var|escape:'html'}
■全ての html エンティティをエスケープ
{$var|escape:'htmlall'}
他に、
urlpathinfo
quotes
hex
hexentity
javascript
mail
http://www.smarty.net/docsv2/ja/language.modifier.escape.tpl