/framework/vendor/smarty2/plugins/prefilter.strip_html.php
http://zoop.googlecode.com/ · PHP · 7 lines · 7 code · 0 blank · 0 comment · 0 complexity · 40fc51d06529f12e0d35526df251df4a MD5 · raw file
- <?
- function smarty_prefilter_strip_html($tpl_source, &$smarty)
- {
- $source = ereg_replace('{(\$[^|}]*)}','{\\1|escape:"html"}',$tpl_source);
- return $source;
- }
- ?>