*/ /** * patTemplate modifier Wxml * * Replace all whitespaces with   * * * @package patTemplate * @package Modifiers * @author gERD Schaufelberger */ class patTemplate_Modifier_Nbsp extends patTemplate_Modifier { /** * modify the value * * @param string value * @param array $params * @return string modified value */ public function modify( $value, $params = array() ) { $value = preg_replace('/\\s+/', ' ', $value); return $value; } } ?>