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.
<u> (underline) tag to default HTML.Allowed configuration - https://github.com/stevebauman/purify/commit/a449299a3d5f5f8ef177e626721b3f69143890a4 - https://github.com/stevebauman/purify/issues/93CACHE_STORE instead of CACHE_DRIVER default .env cache driver env key name for better Laravel 11 support - ac7436f, 083a8bdv4.17 for spl_autoload_call fix - https://github.com/stevebauman/purify/commit/c245c337060d58039426816b9bb4d57ab3182c0econfig method doc to Purify facade (i.e Purify::config())purify.serializer to nullpurify:clear command for purging cached HTML Purifier serialized definition filesAll credit goes to @Propaganistas for this major release. 👏
Purify::getSettings() method - 093bf29storage/app/purify directory is now properly created when publishing the purify configuration file - #29 - 093bf29Purify::clean() method. These settings weren't being merged with the user config.Purfiy::setPurifierConfig()Purfiy::getPurifierConfig()Purfiy::setRepository()How can I help you explore Laravel packages today?