Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Purify Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Clean strings or arrays via Purify::clean()
  • Built on the trusted ezyang/htmlpurifier engine
  • Supports dynamic per-call configuration for special cases
  • Publish and customize a dedicated config file
  • Optional caching for improved performance
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport