PHP Tested
Escape output to prevent XSS in PHP
A short helper around htmlspecialchars with the right flags for HTML text and attribute values.
Loading snippets…
1 snippet
A short helper around htmlspecialchars with the right flags for HTML text and attribute values.