PageRenderTime 24ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): BSD-3-Clause, LGPL-2.1
  1. <?
  2. function smarty_prefilter_strip_html($tpl_source, &$smarty)
  3. {
  4. $source = ereg_replace('{(\$[^|}]*)}','{\\1|escape:"html"}',$tpl_source);
  5. return $source;
  6. }
  7. ?>