public function __construct($parser) { parent::__construct($parser, 'text'); $this->mapHandler('text', 'acceptTextToken'); $this->addSkipping(); foreach ($this->getParsedTags() as $tag) { $this->addTag($tag); } $this->addInTagTokens(); }