News for hackers. Stuff that matters.
Re:I Like PHP by shiflett on Wednesday August 10, 2011 @05:23PM (#2870259)
Actually, you should also always indicate the character encoding, for reasons I explain here:

http://shiflett.org/blog/2005/dec/google-xss-example

Re:I Like PHP by pornel on Thursday August 11, 2011 @05:11AM (#2872075)
Yes, declaration is necessary, but not in the htmlspecialchars() call if you're using ASCII-superset encoding (and you really should declare UTF-8, never UTF-7).