xemlock/htmlpurifier-html5
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).
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()This is a fix release for a bug introduced in v0.1.9 which removed <a> from inline elements (#31).
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:
<progress> element<ruby> elementNotable changes since last release:
<figure> and <details> elements<audio>, <video> and <picture> elements (#17)HTML5Config::inherit() return an instance of HTML5Config (#16)Changes since last release:
sizes attribute to img elementHTML.* keysChanges since last release:
details, picture, and track elementsa elementa elementaudio and video elementssource elementChanges 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.
Changes since last release:
Changes since last release:
Changes since last release:
controls attribute to <video> tag definition<audio> tagHow can I help you explore Laravel packages today?