config['tagName']; $attrName = $this->config['attrName']; $replacements = (isset($this->config['replacements'])) ? $this->config['replacements'] : []; foreach ($matches as $m) { if ($this->isAllowed($m[0][0])) continue; $tag = $this->parser->addSelfClosingTag($tagName, $m[0][1], \strlen($m[0][0])); foreach ($replacements as $_681051f1) { list($regexp, $replacement) = $_681051f1; if (\preg_match($regexp, $m[0][0])) { $tag->setAttribute($attrName, $replacement); break; } } } } protected function isAllowed($word) { return (isset($this->config['allowed']) && \preg_match($this->config['allowed'], $word)); } }