How Do I Escape Characters in a PHP Include?

Jeff

New member
Hi! I have a PHP included XML file, and the XML file has an ampersand, which gives me a not well-formed error. So I need to escape all special characters (turn & into amp;, etc.), in this included file.

include('file.php');

I need to escape the special characters in that. Please help! Thank you!
I'm including an RSS feed using:

$url='link.rss';

But the ampersand lies within the link.rss file. I need to escape it. Please help!
 
Back
Top