nopoco / laminas-escaper
Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs
Requires
- php: ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0
- ext-ctype: *
- ext-mbstring: *
Requires (Dev)
- infection/infection: ^0.26.6
- laminas/laminas-coding-standard: ~2.4.0
- maglnet/composer-require-checker: ^3.8.0
- phpunit/phpunit: ^9.5.18
- psalm/plugin-phpunit: ^0.17.0
- vimeo/psalm: ^4.22.0
Conflicts
This package is auto-updated.
Last update: 2024-10-31 00:31:06 UTC
README
Removed political appeal incompatible with free software here. The original repository is at this link.
The OWASP Top 10 web security risks study lists Cross-Site Scripting (XSS) in second place. PHP’s sole functionality against XSS is limited to two functions of which one is commonly misapplied. Thus, the laminas-escaper component was written. It offers developers a way to escape output and defend from XSS and related vulnerabilities by introducing contextual escaping based on peer-reviewed rules.
Installation
Run the following to install this library:
$ composer require laminas/laminas-escaper
Documentation
Browse the documentation online at https://docs.laminas.dev/laminas-escaper/