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