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.
Zend\Escaper\Escaper has only one configuration option available, and that is
the encoding to be used by the Escaper instance.
The default encoding is utf-8. Other supported encodings are:
If an unsupported encoding is passed to Zend\Escaper\Escaper, a
Zend\Escaper\Exception\InvalidArgumentException will be thrown.
How can I help you explore Laravel packages today?