* @copyright 2001-2003 ispi of Lincoln, Inc. * @link http://smarty.php.net/ * @link http://jelix.org/ * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html */ /** * modifier plugin : Replace all repeated spaces, newlines, tabs with a single space or supplied replacement string * * Example: {$var|strip} {$var|strip:" "} * @param string * @param string * @return string */ function jtpl_modifier_strip($text, $replace = ' ') { return preg_replace('!\s+!', $replace, $text); } ?>