fix PHP Warning: DOMDocument::loadHTML()