Htmlpurifier Html5

screenshot of Htmlpurifier Html5

HTML5 support for HTMLPurifier

Overview

The HTML5 Definitions for HTML Purifier library offers HTML5 element definitions for HTML Purifier in compliance with the WHATWG spec. It is considered the most complete HTML5-compliant solution based on HTML Purifier as it provides a comprehensive set of element definitions and tidy/sanitization rules for converting input into valid HTML5 output.

Features

  • Extensive Element Definitions: Provides the most complete set of HTML5 element definitions.
  • Tidy/Sanitization Rules: Offers rules for transforming input into valid HTML5 output.
  • Support for New Directives: Introduces new directives such as AllowedInputTypes, Forms, IframeAllowFullscreen, Link, SafeLink, XHTML, and URI.SafeLinkRegexp.

Summary

The HTML5 Definitions for HTML Purifier library enhances the capabilities of HTML Purifier by providing HTML5 element definitions and additional directives for tidy and secure HTML output. By installing this library and utilizing its features, developers can ensure that their HTML content adheres to HTML5 standards and is properly sanitized for security purposes.