Character Conversion
Page 1 of 1
[sYn]
[Moderator] Elitist



Posts: 8374

PostPosted: Wed, 10th Aug 2005 02:12    Post subject: Character Conversion
Im pulling in an RSS XML file and parsing it into HTML. Unfortunatly the "HTML" elements are comming out in the XML form.. e.g.

Code:
Mature Women With Younger Girls 14 (c) Legend *DVDRiP* *DiVX* - PR0NSTARS</a></b><br>NFOrce NFOs-&gt;XXX&lt;br /&gt;On 2005-08-10 &lt;b&gt;PR0NSTARS&lt;/b&gt; released &lt;b&gt;Mature Women With Younger Girls 14 (c) Legend *DVDRiP* *DiVX*&lt;/b&gt;&lt;br /&gt;Size: 49x15MB&lt;br /&gt;&lt;a href=&quot;http://adult.dvdempire.com/exec/v1_item.asp?item_id=700184&quot;&gt;Review&lt;/a&gt;&lt;br /&gt;<br><br>


I need to convert the none HTML elements back into plain text for the HTML to reneder correctly, I have found a way to do this with XSL's but I have no method to use XSL's.. Does anyone know of a way I can do this within PHP or Javascript?

Thanks guys!
Back to top
Torsten




Posts: 6

PostPosted: Wed, 10th Aug 2005 18:51    Post subject:
Back to top
[sYn]
[Moderator] Elitist



Posts: 8374

PostPosted: Wed, 10th Aug 2005 19:05    Post subject:
I fixed the problem Smile
Back to top
MamaKin




Posts: 31

PostPosted: Wed, 10th Aug 2005 23:25    Post subject:
Code:
a&gt;&lt;br /&gt


Was it that line that was giving you hassle?
Back to top
[sYn]
[Moderator] Elitist



Posts: 8374

PostPosted: Wed, 10th Aug 2005 23:42    Post subject:
MamaKin wrote:
Code:
a&gt;&lt;br /&gt


Was it that line that was giving you hassle?


Part of it yeah, it was the XML compliance I was having issues with Sad! But I fixed it Very Happy
Back to top
MamaKin




Posts: 31

PostPosted: Fri, 12th Aug 2005 03:30    Post subject:
Oh, right, cool Very Happy
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group