3 * template_lite strip modifier plugin
7 * Purpose: Removes all repeated spaces, newlines, tabs
8 * with a single space or supplied character
9 * Credit: Taken from the original Smarty
10 * http://smarty.php.net
12 function tpl_modifier_strip($string, $replace = ' ')
14 return preg_replace('!\s+!', $replace, $string);