stevebauman/purify
Laravel wrapper for HTMLPurifier to sanitize user HTML safely. Clean strings or arrays via the Purify facade, with optional per-call configuration. Publish a config file, tune allowed tags/attributes, and leverage caching for performance.
Purify is a Laravel wrapper around HTMLPurifier, making it easy to sanitize user-provided HTML and reduce XSS risks. Use the Purify facade to clean strings or arrays, with sensible defaults and the ability to override rules when needed.
Ideal for forms, WYSIWYG editors, and any untrusted input, Purify helps you keep only the markup you allow—without manual parsing.
Purify::clean()How can I help you explore Laravel packages today?