config['tagName']; $attrName = $this->config['attrName']; foreach ($matches as $m) { $content = \html_entity_decode(\substr($m[0][0], 4, -3), \ENT_QUOTES, 'UTF-8'); $content = \str_replace(['<', '>'], '', $content); $content = \str_replace('--', '', $content); $this->parser->addSelfClosingTag($tagName, $m[0][1], \strlen($m[0][0]))->setAttribute($attrName, $content); } } }