voku/anti-xss
PHP AntiXSS library to sanitize untrusted HTML and prevent XSS attacks. Cleans input by removing dangerous tags/attributes, filters CSS/JS vectors, and supports UTF-8 and common encodings. Useful for safely handling user-generated content in apps.
Architecture fit: Laravel's Blade auto-escapes output by default, making this package ideal for scenarios where raw HTML rendering is required beyond Blade's escaping (e.g., WYSIWYG editors, custom HTML templates). It complements rather than replaces core Laravel security practices.
Integration feasibility: High. Composer-based installation and direct class usage (new \voku\helper\AntiXSS()->xss_clean()) enable quick adoption.
How can I help you explore Laravel packages today?