Registry / utility / zendframework-zend-escaper

zendframework-zend-escaper

JSON →
library2.6.1phppackagistunverified

Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs.

composer require zendframework/zend-escaper
INSTALL
IMPORT
SIG · ZENDFRAMEWORK-ZEND
Z
zendframework-zend-escaper
utilityphpv2.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Escaper
use Zend\Escaper\Escaper;

Escapes HTML output to prevent XSS.

use Zend\Escaper\Escaper; $escaper = new Escaper(); echo $escaper->escapeHtml('<script>alert("xss")</script>');
Debug
Known issues
breakingThis package is part of the archived Zend Framework; use Laminas Escaper instead.
fix
Replace zendframework/zend-escaper with laminas/laminas-escaper.
affects: *
Upgrade
Version history
2.6.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Resources
zendframework-zend-escaper — pip install zendframework-zend-escaper · libregistry