Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Htmlpurifier Html5 Laravel Package

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).

View on GitHub
Deep Wiki
Context7
v0.1.12
v0.1.11

Notable changes since last release:

  • Implemented spec compliant <address>, <header>, <footer> (#39)
  • Implemented spec compliant <form> and <blockquote> (#46)
  • Added spec compliant datetime attribute to <time>, <ins>, <del> (#35)
  • Defined <article>, <aside>, <nav>, <section> as Sectioning content
  • Defined <hgroup> as Heading content
  • Empty <figure>s are no longer removed
  • Made allowfullscreen attribute of <iframe> guarded by %HTML.IframeAllowFullscreen setting (#38)
  • Dropped obsolete elements: <basefont>, <center>, <dir>, <font>, <menu>, <strike>
  • Dropped obsolete <iframe> attributes: scrolling, frameborder, longdesc, marginheight, marginwidth

Changes to internal APIs:

  • Removed deprecated class HTMLPurifier_AttrDef_Regexp
  • Removed deprecated class HTMLPurifier_AttrTransform_Progress
  • Removed deprecated HTMLPurifier_ChildDef_ classes: Details, Figure, Media, Picture
  • Removed helper class HTMLPurifier_ChildDef_HTML5
  • Removed deprecated method HTMLPurifier_HTML5Definition::setup()
v0.1.10

This is a fix release for a bug introduced in v0.1.9 which removed <a> from inline elements (#31).

v0.1.9

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
  • Added <bdi> and <dialog>
  • Added datetime attribute to <del> and <ins>
  • Added async and charset attributes to <script> (issue #26)
  • Added auto value to dir global attribute
  • Added validation for rel attribute of <a> element

The following classes were marked as deprecated:

  • HTMLPurifier_AttrDef_Regexp as unused
  • HTMLPurifier_AttrTransform_Progress, use HTMLPurifier_AttrTransform_HTML5_Progress instead
  • HTMLPurifier_ChildDef_Details, use HTMLPurifier_ChildDef_HTML5_Details instead
  • HTMLPurifier_ChildDef_Figure, use HTMLPurifier_ChildDef_HTML5_Figure instead
  • HTMLPurifier_ChildDef_Media, use HTMLPurifier_ChildDef_HTML5_Media instead
  • HTMLPurifier_ChildDef_Picture, use HTMLPurifier_ChildDef_HTML5_Picture instead
  • HTMLPurifier_ChildDef_Progress, use HTMLPurifier_ChildDef_HTML5_Progress instead
v0.1.8

Notable changes since last release:

  • Add <progress> element
  • Add <ruby> element
v0.1.7

Notable changes since last release:

  • Fix content model definition of <figure> and <details> elements
  • Fix content category of <audio>, <video> and <picture> elements (#17)
  • Make HTML5Config::inherit() return an instance of HTML5Config (#16)
v0.1.6

Changes since last release:

  • Add sizes attribute to img element
  • Prevent removal of HTML5 definitions when setting HTML.* keys
v0.1.5

Changes since last release:

  • Add support for details, picture, and track elements
  • Add support for HTML5 attributes to a element
  • Allow flow content inside a element
  • Fix content sanitization in audio and video elements
  • Fix definition of source element
v0.1.4

Changes since last release:

  • Update readme
  • Make HTML5Config::create() default arguments the same as Config::create()

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.

v0.1.3

Changes since last release:

  • Don't auto-finalize config upon creation
v0.1.2

Changes since last release:

  • fix boolean attribute validation
  • simplify definitions for audio|video|figure elements
  • use config schema singleton instance instead of creating one, if none was provided
v0.1.1

Changes since last release:

  • add controls attribute to <video> tag definition
  • add definition for <audio> tag
  • fix installation instruction
v0.1.0
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log