Re: loadHTML/loadHTMLFile - DOM functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How are you getting that output?

Remember most of the functionality - other than the saveXML(), saveHTML() functions - output using UTF-8 (which you would need to convert to what ever encoding you need).

Rob

Leonidas Safran wrote:
Hello all,

Again a question on the new DOM functions...

The loadHTML function doesn't support any attribute and I'm wondering how to handle non-text content. Image tags from source webpage are loaded as "objects" or whatever; they appear as special chars("show source" from browser shows big empty spaces)... Isn't it possible to "load" the real source code? Special characters, like the german "ä" is also badly converted into some bizarr "ä" equivalent...

I tried both functions loadHTML($string) ($string = file_gets_content(url)) and loadHTMLFile(url). Both with the same result...

Has anyone an idea how to do it?

Thanks

LS

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux