Convert special characters to HTML in loadHTML

This will get rid of errors such as these when loading html

'Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity'