scelusswe / escaper
There is no license information available for the latest version (v1.0) of this package.
Provides extended escaping funtionality to prevent XSS attacks.
v1.0
2019-06-19 14:54 UTC
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2026-03-20 05:52:12 UTC
README
XSS---Escaper-Class-for-safer-websites
Escaper Class to prevent XSS attacks
CEscaper is based upon the recommendations found here:
https://wiki.php.net/rfc/escaper
https://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet
Documentation used
http://php.net/manual/en/function.preg-replace-callback.php
http://php.net/manual/en/function.rawurlencode.php
http://php.net/manual/en/regexp.reference.escape.php
http://php.net/manual/en/function.htmlspecialchars.php
Inspiration gathered from:
https://docs.phalconphp.com/en/latest/api/Phalcon_Escaper.html
https://docs.phalconphp.com/en/latest/reference/escaper.html#escaping-html