NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #2641 most downloaded on Packagist
HTML5 support for HTML Purifier
Last release 8 months ago
09 Feb 2026
Ships unpredictably
gaps range from 1 weeks to 6.5 years
Most releases are documented
notes for 9 of 13 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
13 releases · first in 2017
Nothing published for this version
Removed deprecated class HTMLPurifier_AttrDef_Regexp
Notable changes since last release:
<address>, <header>, <footer> (#39)<form> and <blockquote> (#46)datetime attribute to <time>, <ins>, <del> (#35)<article>, <aside>, <nav>, <section> as Sectioning content<hgroup> as Heading content<figure>s are no longer removedallowfullscreen attribute of <iframe> guarded by %HTML.IframeAllowFullscreen setting (#38)<basefont>, <center>, <dir>, <font>, <menu>, <strike><iframe> attributes: scrolling, frameborder, longdesc, marginheight, marginwidthChanges to internal APIs:
HTMLPurifier_AttrDef_RegexpHTMLPurifier_AttrTransform_ProgressHTMLPurifier_ChildDef_ classes: Details, Figure, Media, PictureHTMLPurifier_ChildDef_HTML5HTMLPurifier_HTML5Definition::setup()One column per quarter.
This is a fix release for a bug introduced in v0.1.9 which removed <a> from inline elements ( #31 ).
This is a fix release for a bug introduced in v0.1.9 which removed <a> from inline elements (#31).
The following classes were marked as deprecated:
DO NOT INSTALL THIS RELEASE!!! It contains a bug in <a> element definition, preventing it from being treated as an inline element. Use v0.1.10 instead.
Notable changes since last release:
HTML5 doctype and modularization<bdi> and <dialog>datetime attribute to <del> and <ins>async and charset attributes to <script> (issue #26)auto value to dir global attributerel attribute of <a> elementThe following classes were marked as deprecated:
HTMLPurifier_AttrDef_Regexp as unusedHTMLPurifier_AttrTransform_Progress, use HTMLPurifier_AttrTransform_HTML5_Progress insteadHTMLPurifier_ChildDef_Details, use HTMLPurifier_ChildDef_HTML5_Details insteadHTMLPurifier_ChildDef_Figure, use HTMLPurifier_ChildDef_HTML5_Figure insteadHTMLPurifier_ChildDef_Media, use HTMLPurifier_ChildDef_HTML5_Media insteadHTMLPurifier_ChildDef_Picture, use HTMLPurifier_ChildDef_HTML5_Picture insteadHTMLPurifier_ChildDef_Progress, use HTMLPurifier_ChildDef_HTML5_Progress insteadNotable changes since last release:
Notable changes since last release:
<progress> element<ruby> elementNotable changes since last release:
Add sizes attribute to img element
Changes since last release:
sizes attribute to img elementHTML.* keysAdd support for details , picture , and track elements
Changes since last release:
details, picture, and track elementsa elementa elementaudio and video elementssource elementMake HTML5Config::create() default arguments the same as Config::create()
Changes since last release:
Important: previous releases allowed HTMLPurifier_HTML5Config::create() to be called without any arguments. In this release the first argument is required, just as it is in HTMLPurifier_Config::create(). If it's not provided a warning will be issued, but apart from that the library will work as before.
Don't auto-finalize config upon creation
Changes since last release:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →