Exemple #1
0
 static function stripTags(&$value, $allowableTags = null, $allowableAttributes = null)
 {
     self::$stripTagsAllowableTags = Arrays::stringArray($allowableTags);
     self::$stripTagsAllowableAttributes = $allowableAttributes;
     return $value = preg_replace_callback('@(</?)([^>]+)(>|$)@', array(self, 'stripTagsCallback'), $value);
 }