10 * Smarty strip_tags modifier plugin
13 * Name: strip_tags<br>
14 * Purpose: strip html tags from text
15 * @link http://smarty.php.net/manual/en/language.modifier.strip.tags.php
16 * strip_tags (Smarty online manual)
17 * @author Monte Ohrt <monte at ohrt dot com>
22 function smarty_modifier_strip_tags($string, $replace_with_space = true)
24 if ($replace_with_space)
25 return preg_replace('!<[^>]*?>!', ' ', $string);
27 return strip_tags($string);
30 /* vim: set expandtab: */