Page 1 of 1

control the output of third party content

Posted: Fri Nov 06, 2009 4:38 am
by gentleone
I'm struggling with getting my PHP document valid XHTML 1.0 Strict.

I use a PHP snippet to parse RSS feeds, but if there is a normal "&" in the feed instead of the ampersand version "&" then I get a validation output error.

So my question is, can I control or convert somehow the output from the RSS feeds so that it would change the "&" in the ampersand version?

Perhaps a dumb question, but I'll never know unless I ask. :)

Re: control the output of third party content

Posted: Fri Nov 06, 2009 5:29 am
by gentleone
Problem solved!

I've added

Code: Select all

.htmlentities()
to

Code: Select all

.$val->title).