Exemplo n.º 1
0
 public function __construct($tokens)
 {
     $this->tokens = $tokens;
     $a = new Shine_Filter();
     $this->filters = $a->getLibrary();
     $b = new Shine_Tag();
     $this->tags = $b->getLibrary();
 }
Exemplo n.º 2
0
 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;
 }