I do a lot $this->escape()in zend view. Is this enough to prevent XSS?
$this->escape()
There HTMLPurifier outside of the Zend Framework. I wonder how zend $this->escape()compares with HTMLPurifier.
escape is an alias of htmlspecialchars. It allows you to display plain text, while HTMLPurifier allows you to display safe HTML.
You cannot have plaintext XSS.
HTMLPurifier strip_tags, HTML, (, ).
HTMLPurifier . HTMLPurifier HTML... , . , , , HTML, , . HTML, , /.
escape() HTML- HTML, , HTML (, & โ &, < โ <, > โ > ..).
&
&
<
<
>
>
.
XSS? , , .