5 * @subpackage plugins
\r
10 * Smarty strip_tags modifier plugin
\r
12 * Type: modifier<br>
\r
13 * Name: strip_tags<br>
\r
14 * Purpose: strip html tags from text
\r
15 * @link http://smarty.php.net/manual/en/language.modifier.strip.tags.php
\r
16 * strip_tags (Smarty online manual)
\r
21 function smarty_modifier_strip_tags($string, $replace_with_space = true)
\r
23 if ($replace_with_space)
\r
24 return preg_replace('!<[^>]*?>!', ' ', $string);
\r
26 return strip_tags($string);
\r
29 /* vim: set expandtab: */
\r