1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-10-19 15:56:06 +02:00
semantic-release-bot b287d2a16a chore(release): 4.19.0 [skip ci]
# [4.19.0](https://github.com/ezyang/htmlpurifier/compare/v4.18.0...v4.19.0) (2025-10-17)

### Bug Fixes

* add warning for misleading option ([#433](https://github.com/ezyang/htmlpurifier/issues/433)) ([b21a591](b21a59101f))
* catastrophic backtracking in Core.AggressivelyFixLt ([#440](https://github.com/ezyang/htmlpurifier/issues/440)) ([418eeb7](418eeb7dc0))
* Deprecated: preg_replace(): Passing null to parameter [#3](https://github.com/ezyang/htmlpurifier/issues/3) ($subject) o… ([#421](https://github.com/ezyang/htmlpurifier/issues/421)) ([5d154a2](5d154a2393))
* non-substantive typos ([#434](https://github.com/ezyang/htmlpurifier/issues/434)) ([c2bc354](c2bc3549a3))

### Features

* Add CSS direction support ([#429](https://github.com/ezyang/htmlpurifier/issues/429)) ([63e631e](63e631ebd3))
* Add option for safe iframe hosts using array lookup ([#423](https://github.com/ezyang/htmlpurifier/issues/423)) ([b5cbf0c](b5cbf0cc3d))
* Allow more image widths by default ([#430](https://github.com/ezyang/htmlpurifier/issues/430)) ([00a0748](00a0748427))
* Define option URI.AllowedSymbols ([#447](https://github.com/ezyang/htmlpurifier/issues/447)) ([77ebd08](77ebd08632))
* PHP 8.4 support ([#441](https://github.com/ezyang/htmlpurifier/issues/441)) ([ff005f6](ff005f6edc))
* Support PHP 8.5 versions ([#453](https://github.com/ezyang/htmlpurifier/issues/453)) ([1eb05d9](1eb05d9864))
2025-10-17 16:34:55 +00:00
2025-01-14 16:31:27 -05:00
2025-10-17 16:34:55 +00:00
2025-01-14 16:31:27 -05:00
2008-12-06 04:24:59 -05:00
2025-10-17 16:34:55 +00:00
2025-01-14 16:31:27 -05:00
2008-12-06 04:24:59 -05:00
2025-10-17 16:34:55 +00:00
2022-09-18 02:44:00 -04:00
2008-12-06 04:24:59 -05:00
2021-07-20 09:40:50 -04:00
2022-09-20 12:45:11 -04:00
2025-01-14 16:31:27 -05:00
2025-10-17 16:34:55 +00:00
2008-12-06 04:24:59 -05:00

HTML Purifier Build Status

HTML Purifier is an HTML filtering solution that uses a unique combination of robust whitelists and aggressive parsing to ensure that not only are XSS attacks thwarted, but the resulting HTML is standards compliant.

HTML Purifier is oriented towards richly formatted documents from untrusted sources that require CSS and a full tag-set. This library can be configured to accept a more restrictive set of tags, but it won't be as efficient as more bare-bones parsers. It will, however, do the job right, which may be more important.

Places to go:

  • See INSTALL for a quick installation guide
  • See docs/ for developer-oriented documentation, code examples and an in-depth installation guide.
  • See WYSIWYG for information on editors like TinyMCE and FCKeditor

HTML Purifier can be found on the web at: http://htmlpurifier.org/

Installation

Package available on Composer.

If you're using Composer to manage dependencies, you can use

$ composer require ezyang/htmlpurifier
Description
No description provided
Readme LGPL-2.1 13 MiB
Languages
PHP 94.5%
HTML 4.6%
XSLT 0.5%
CSS 0.2%
JavaScript 0.1%