XPATH not working on the HTML
问题 I have a code that reads an HTML file from my local web server localhost and then converts it to XHTML with tidy . Then i load that XHTML into my DOM . the code looks like this <?php function getXHTML($html) { $options = array("output-html" => true,"quote-nbsp" => true, "drop-proprietary-attributes" => true,"drop-font-tags" => true,"drop-empty-paras" => true,"hide-comments" => true); $tidy=new tidy(); $xhtml=$tidy->repairString($html,$options); echo $xhtml; return $xhtml; } $content = file