2017 © Pedro Peláez

library htmlawed

htmLawed - Adjusted to use static functions for autoloading



htmLawed - Adjusted to use static functions for autoloading

  • Tuesday, March 11, 2014
  • by wittiws
  • Repository
  • 1 Watchers
  • 0 Stars
  • 148 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 14 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown


HTMLawed is ...

... a single-file, 45 kb PHP script that makes input text more secure, HTML standards-compliant, and suitable in general from the viewpoint of a web-page administrator, for use in the body of HTML, XHTML or XML documents. A simple HTMLTidy alternative, the htmLawed filter, processor, purifier, sanitizer, beautifier, etc., is highly customizable., (*1)

It ensures that HTML tags are balanced and properly nested tags, neutralizes code that may be used for cross-site scripting (XSS) attacks, limits allowed HTML elements, attributes, or URL protocols, tidies the code, and so forth., (*2)

As such is may serve as an alternative to HTMLtidy in a sanitation context., (*3)

This repository is ...

... a derivative, which closely tracks the original, (*4)


  • The Original: http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/
  • The SF site where the official Original Releases are available (no cvs/svn/... repository there, though, just releases): http://sourceforge.net/projects/htmlawed/
  • HTMLawed against RSnake's XSS attack vectors: http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/rsnake/RSnakeXSSTest.htm

The Versions

11/03 2014


9999999-dev http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/

htmLawed - Adjusted to use static functions for autoloading

  Sources   Download

GPL-2.0+ LGPL-3.0

The Requires

  • php >=5.3.3


html tags sanitize strip htmltidy