PHP Labware internal utilities / home | July 3, 2009
Download
100 kb zip file
v1.1.8, 23 Apr 09
source code
Documentation
readme
Discuss
forum
htmLawed
PHP code to purify & filter HTML

  • make HTML markup in text secure and standard-compliant
  • process text for use in HTML, XHTML or XML documents
  • restrict HTML elements, attributes or URL protocols using black- or white-lists
  • balance tags, check element nesting, transform deprecated attributes and tags, make relative URLs absolute, etc.
  • fast, highly customizable, well-documented
  • single, 47 kb file
  • simple HTML Tidy alternative
  • use to filter, secure & sanitize HTML in blog comments or forum posts, generate XML-compatible feed items from web-page excerpts, convert HTML to XHTML, pretty-print HTML, scrape web-pages, reduce spam, remove XSS code, etc.

more ...
PHP Labware home | visitors since 15 Mar'09
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 HTML XHTML filter - balanced tags - nested tags - htmlawed vs htmlpurifier - fast - 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. Secure TinyMCE. Make XHTML compliant. HTML tag filter.