$html = str_replace( ' <', ' <', $html );
libxml_use_internal_errors( true );
+ $loader = libxml_disable_entity_loader();
$this->doc = new DOMDocument();
$this->doc->strictErrorChecking = false;
$this->doc->loadHTML( $html );
+ libxml_disable_entity_loader( $loader );
libxml_use_internal_errors( false );
$this->doc->encoding = 'UTF-8';
}