scelusswe / escaper
Provides extended escaping funtionality to prevent XSS attacks.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Language:HTML
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2024-09-20 02:42:51 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