PHP: Loading up an HTML file without it tidying my code

Fl@m3

New Member
I am using the loadhtml function (http://php.net/manual/en/domdocument.loadhtml.php) to load up an external .html file. When I load it, it "tidy's" up my code, which, I don't want. I do NOT want a full HTML document, I only want html snippets in my .html, and I don't want the loadhtml file to try to make it valid html, because I don't want it to.Is there a better function to load up a .html file so that it does not tidy up the code?!
 
Back
Top