RSS

It got me again, not escaping characters in my rss feed. I knew what was happening as soon as I saw the error this time though which helped, I still forgot to put the extra code in to start with though Sad Also de-bugging was made harder because i.e. refused to admit that there was a new file there, instead insisting on complaining about the old error making me think it wasn't fixed after all.

$replace = array("&", "<", ">", "\"", "'");
$with = array("&amp;", "&lt;", "&gt;", "&quot;", "&apos;");
$aString = str_replace($replace, $with, $aString)

Add new comment

(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.