Hacker News new | ask | show | jobs
by pornel 5420 days 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).