htmlencode vs htmlspecialchars

3 posts by 2 authors in: Forums > CMS Builder
Last Post: November 7   (RSS)

By KennyH - November 6

I can't remember the exact reason for using htmlencode. Is it the same as using htmlspecialchars?

<?= htmlspecialchars($contact_usRecord['email']) ?>

vs

<?= htmlencode($contact_usRecord['email']) ?>

Do they perform the same functions?

By KennyH - November 7

Fantastic! I knew it was something like that, I just couldn't remember why and I vaguely remember when you introduced it.

Thanks - KH