/** * Return attribute value * * @param string $name * * @return string */ public function getAttribute($name) { $html = $this->node->getAttribute($name); return HtmlDomParser::putReplacedBackToPreserveHtmlEntities($html); }