'; public static function makeSafe ($string) { return htmlentities($string); } public static function makeSafeAndWrapBetter ($string) { return preg_replace( array('~/|-|\.~'), array(static::$invisibleSpace.'$0'.static::$invisibleSpace), // Put an invisible space before and after each slash, hyphen and period static::makeSafe($string) ); } } ?>