Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
shiflett
· 15y ago · 0 comments
Actually, you should also always indicate the character encoding, for reasons I explain here:
http://shiflett.org/blog/2005/dec/google-xss-example
Comments
[–]
pornel
15y ago
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).