fossar/htmlawed
Fork of kesar/HTMLawed maintained by selfoss and wallabag. A single-file (~45KB) PHP HTML filter/sanitizer that secures and tidies user input, making it standards-compliant for HTML/XHTML/XML, with extensive customization options.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| webpatser/laravel-sanitize | 0.86 | — | 7 | 8 | 1 | 165 | 0 | 0.0 | 13.0 | — | — | |
| aimeos/sanitizer | 0.84 | Laravel package providing data sanitization helpers: clean and normalize input, strip unwanted characters/tags, and validate common formats. Useful for securing request data and preparing values for storage, APIs, and user-facing output. | 218 | 184 | 0 | 3K | 0 | 1.1 | 15.9 | LGPL-2.1 | — | |
| stevebauman/purify | 0.84 | A Laravel wrapper for HTMLPurifier that sanitizes user input. Clean strings or arrays via Purify::clean(), define allowed HTML in the publishable config, and cache parsed definitions for performance. Supports PHP 7.4+ and Laravel 7+. | 537 | 540 | 38 | 518K | 0 | 20.4 | 43.8 | MIT | 7 months ago | |
| typo3/html-sanitizer | 0.83 | A standalone PHP HTML sanitization component from TYPO3, usable in any PHP project. Declarative Behavior settings define allowed tags, attributes, and values; visitors modify or remove nodes; builders combine presets into ready-to-use Sanitizer instances for safe HTML output. | 29 | 29 | 13 | 382K | 6 | 24.6 | 63.1 | MIT | 4 months ago | |
| rhukster/dom-sanitizer | 0.82 | A fast, MIT-licensed DOM, SVG, and MathML sanitizer for PHP 7.3+. It uses PHP DOMDocument to strip dangerous tags and attributes, borrowing DOMPurify’s extensive allowlists. Configurable options and tag/attribute controls included. | 14 | 11 | 3 | 169K | 0 | 24.5 | 64.8 | MIT | 1 week ago | |
| symfony/html-sanitizer | 0.82 | Symfony's HtmlSanitizer component offers an object-oriented API to clean untrusted HTML for safe DOM insertion. Configure allowed elements, attributes, link schemes, and URL forcing to strip scripts and dangerous markup. | 284 | 283 | 13 | 4M | 0 | 36.3 | 64.9 | MIT | 1 week ago | |
| xemlock/htmlpurifier-html5 | 0.81 | HTML5 definitions and tidy/sanitization rules for HTML Purifier, aligned with the WHATWG spec. Purify and normalize dirty HTML5 into valid output with an HTML5-ready config, plus flexible directives (e.g., safely allow YouTube iframes). | 106 | 106 | 15 | 92K | 1 | 11.5 | 42.8 | MIT | 8 months ago | |
| devanoxltd/php-html-parser | 0.81 | Lightweight PHP HTML parser with jQuery-style CSS selectors. Load HTML from strings or files, handle imperfect markup, and traverse nodes (attributes, innerHtml, siblings). Ideal for quick web scraping and DOM extraction in PHP 7.2–7.4. | 0 | 0 | 0 | 28 | 0 | 0.9 | 20.2 | MIT | 1 year ago | |
| zendframework/zendxml | 0.78 | ZendXml provides secure XML scanning/loading for PHP to help prevent XXE and XML entity expansion (XEE) attacks. It disables external entity loading and rejects documents using ENTITY declarations, returning SimpleXMLElement or DOMDocument. Repository abandoned; moved to laminas/laminas-xml. | 29 | 30 | 12 | 28K | 0 | 0.9 | 28.9 | BSD-3-Clause | 7 years ago | |
| aura/html | 0.77 | HTML escapers and helpers for any PHP template/view layer, including tag builders and form input helpers. Easy to use via a HelperLocatorFactory; built-in helpers escape values appropriately and you can register custom helpers via the HelperLocator. | 52 | 53 | 21 | 4K | 0 | 23.3 | 30.0 | MIT | 1 month ago | |
| cebe/markdown | 0.75 | Fast, extensible PHP Markdown parser with classes for multiple flavors (Traditional, GitHub Flavored, and partial Markdown Extra) plus a CLI to convert .md to HTML. Designed for speed, easy customization, and AST-based hooks for extensions. | 1,011 | 1,035 | 137 | 763K | 39 | 25.4 | 53.9 | MIT | 8 years ago | |
| webuni/commonmark-attributes-extension | 0.75 | Adds Kramdown-style attribute lists to League/CommonMark markdown, letting you assign HTML ids, classes, and other attributes to block and span elements. Deprecated: use the built-in Attributes extension in league/commonmark 1.5+ instead. | 31 | 33 | 14 | 422 | 0 | 0.3 | 11.2 | MIT | — | |
| pear/html_common2 | 0.75 | — | 1 | 1 | 2 | 9K | 0 | 0.1 | 50.8 | — | — | |
| yiisoft/html | 0.75 | Yii HTML provides tools for dynamic server-side HTML generation in PHP: a dedicated class for each tag, a CustomTag class, widgets like ButtonGroup, CheckboxList and RadioList, automatic encoding with NoEncode, and an Html helper for creating tags and widgets. Requires PHP 8.1–8.5. | 59 | 58 | 23 | 38K | 6 | 20.0 | 44.1 | BSD-3-Clause | 5 months ago | |
| sensiolabs/ansi-to-html | 0.64 | Convert ANSI-colored console output into an HTML5 fragment. Supports themes (e.g., Solarized), inline styles or CSS classes, can export theme CSS, and includes a Twig extension for easy use in templates. | 253 | 257 | 36 | 130K | 9 | 5.2 | 40.8 | MIT | — | |
| html2text/html2text | 0.61 | — | 588 | 610 | 178 | 1M | 15 | 17.6 | 53.5 | — | 2 years ago | |
| spatie/laravel-html | 0.61 | Generate HTML in Laravel with a clean, readable API. Build elements dynamically and compose them easily, including form fields that automatically pull values from models, session data, or defaults. Includes a convenient Html facade/alias for quick use. | 829 | 839 | 102 | 569K | 0 | 22.4 | 41.2 | MIT | 8 months ago | |
| laravel/folio | 0.58 | Laravel Folio is a powerful page-based router for Laravel applications. It simplifies routing by mapping Blade views to routes automatically, letting you build pages with a clean, file-based structure instead of manual route definitions. | 608 | 608 | 53 | 60K | 0 | 29.5 | 31.4 | MIT | 2 months ago | |
| laraveldaily/larastarters | 0.58 | Larastarters installs a Laravel starter kit (Breeze Tailwind or Laravel UI Bootstrap) plus ready-made design themes. Adds common app features like profile management, users list table, sample static page, and a two-level sidebar menu. For new projects only. | 770 | 774 | 132 | 2K | 1 | 16.6 | 7.0 | MIT | 2 years ago | |
| laravelium/sitemap | 0.58 | Framework-agnostic PHP package for generating XML, TXT, HTML, and Google News sitemaps. Works with Laravel, Symfony, or any PHP project, with support for images, videos, translations, alternates, and Google News. Includes extensible adapters and high test coverage. | 1,340 | 1,348 | 274 | 579 | 1 | 35.8 | 2.5 | MIT | 1 week ago |
How can I help you explore Laravel packages today?