PHP Labware internal utilities / home | July 21, 2008
Download
98 kb zip file
v1.1, 30 Jun 08
source code
Documentation
readme
Discuss
forum
htmLawed
PHP code to purify & filter HTML

  • make HTML markup in text more secure and standard-compliant
  • processed text can be used in HTML, XHTML or XML documents
  • restrict HTML elements, attributes, protocols, etc.
  • balance tags, check element nesting, transform deprecated attributes and tags, convert relative to absolute URLs, etc.
  • highly customizable
  • single file of ~45 kb
  • simple HTML Tidy alternative
  • use to filter & sanitize HTML code submitted in blog comments, forum posts, etc., generate XML-compatible feed items from web-page excerpts, make old HTML code XHTML-compliant, pretty-print HTML, scrape web-pages, and so on

more...
PHP Labware home | visitors since May 2006
PHP HTML filter PHP Anti-XSS Class - HTML purify PHP - XSS library - PHP HTML purification - HTM purify - PHP sanitize class - anti XSS input filter - HTML standards compliance - PHP balance tags - HTML tag balance - PHP filter script. PHP filter library. HTMLPurifier comparison HTML purifier. Filter tags attributes elements XHTML spec specs standards. White-list black list tags. W3C specs