PDA

View Full Version : help with &


dethfire
07-02-2008, 03:57 PM
If I have a URL in say $rss_item['LINK'] and I want to replace the & with & how would I do that in php?

Bellardia
07-02-2008, 05:37 PM
$rss_item['LINK'] = str_replace("&", "&", $rss_item['LINK']);

Marco van Herwaarden
07-03-2008, 10:20 AM
You should just use htmlspecialchars().