Registry / security / laminas-laminas-escaper

laminas-laminas-escaper

JSON →
library2.18.0phppackagistunverified

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

composer require laminas/laminas-escaper
INSTALL
IMPORT
SIG · LAMINAS-LAMINAS-ES
L
laminas-laminas-escaper
securityphpv2.18.0
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 Laminas\Escaper\Escaper;

Escape HTML to prevent XSS attacks

use Laminas\Escaper\Escaper; $escaper = new Escaper(); $safeHtml = $escaper->escapeHtml('<script>alert("xss")</script>');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.18.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
laminas-laminas-escaper — pip install laminas-laminas-escaper · libregistry