open source

Market Place / Frameworks / Html Purifier

HTML Purifier

HTML Purifier Get Started
  • Frameworks
  • 5.0
  • 2.57 MB

HTML Purifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist, it will also make sure your documents are standards compliant, something only achievable with a comprehensive knowledge of W3C's specifications.

  • Whitelist
  • Removes foreign tags
  • Makes well-formed
  • Fixes nesting
  • Validates attributes
  • XSS safe
  • Standards safe
  • UTF-8 aware
  • Object-Oriented
  • Validates CSS
  • Tables
  • Can auto-paragraph
  • Extensible
  • Unit tested