|
|
%!s(int64=2) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| src | %!s(int64=2) %!d(string=hai) anos | |
| .laminas-ci.json | %!s(int64=2) %!d(string=hai) anos | |
| COPYRIGHT.md | %!s(int64=2) %!d(string=hai) anos | |
| LICENSE.md | %!s(int64=2) %!d(string=hai) anos | |
| README.md | %!s(int64=2) %!d(string=hai) anos | |
| composer.json | %!s(int64=2) %!d(string=hai) anos | |
| phpcs.xml.dist | %!s(int64=2) %!d(string=hai) anos | |
| psalm-baseline.xml | %!s(int64=2) %!d(string=hai) anos | |
| psalm.xml | %!s(int64=2) %!d(string=hai) anos | |
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.
Run the following to install this library:
$ composer require laminas/laminas-escaper
Browse the documentation online at https://docs.laminas.dev/laminas-escaper/