public function __construct($tokens) { $this->tokens = $tokens; $a = new Shine_Filter(); $this->filters = $a->getLibrary(); $b = new Shine_Tag(); $this->tags = $b->getLibrary(); }
public static function removetags($value, $tags) { $tags = Shine_Tag::split($tags); $tags_re = '(' . implode('|', $tags) . ')'; $value = preg_replace("/<" . $tags_re . "(\\/?>|(\\s+[^>]*>))/", '', $value); $value = preg_replace("/<\\/" . $tags_re . ">/", '', $value); return $value; }