Re: loadHTML/loadHTMLFile - DOM functions [solved]

From: Date: Mon, 18 Sep 2006 20:41:10 +0000
Subject: Re: loadHTML/loadHTMLFile - DOM functions [solved]
Groups: php.general 
Request: Send a blank email to php-general+get-241905@lists.php.net to get a copy of this message
Hello Rob, > Try this line: > $this->ticker .= utf8_decode($child_elements->item($j)->textContent); > Your original HTML document is ISO-8859-1, so when you want the text > I think you want to convert the UTF-8 (Internally DOM document > works with UTF-8) to ISO-8859-1. Just using the utf8_decode > function here from ext/xml. This elminates those  characters > you were getting. Well done! That is it! The <img>-Tag thing is still a mistery to me, but as I pass them in my javascript part, I don't really care :-) Thank you a lot LS -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

« previous php.general (#241905) next »