This code below gives me a DOMDocument Warning and I wonder why. Is there anything I can do to fix it, or not display this particular warning? I’m running php on windows xp and iis.
$content = "<html><body><p>'HTTP_REFERER' => 'http://localhost/?table=event_occurrence_person&LB1ID='</p></body></html>";
$dom = new DOMDocument;
$dom->loadHTML($content);
Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ‘;’ in Entity, line: 1 in…
Well, your XML is malformed.
=>must be escaped to=>(optional, not blocking)&LB1IDmust be escaped to&LB1ID(raises your warning)