allowedModes = []; } /** @inheritdoc */ public function getSort() { return 255; } /** @inheritdoc */ public function connectTo($mode) { $this->Lexer->addSpecialPattern(HtmlEntity::PATTERN, $mode, 'gfm_html_entity'); } /** @inheritdoc */ public function handle($match, $state, $pos, Handler $handler) { $handler->addCall('cdata', [HtmlEntity::decodeOne($match)], $pos); return true; } }