zendframework/zend-escaper
Zend Escaper is a PHP library for context-aware escaping to help prevent XSS. Escape HTML, HTML attributes, JavaScript, CSS, and URLs with reliable encoders, making it easy to safely output untrusted data in templates and web responses.
Repository abandoned 2019-12-31
This repository has moved to laminas/laminas-escaper.
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 zend-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 zendframework/zend-escaper
Browse the documentation online at https://docs.zendframework.com/zend-escaper/
How can I help you explore Laravel packages today?