00992: HTML filtering and purification/correction with htmLawed

Summary: HTML filtering and purification/correction with htmLawed
Created: 2007-11-06 15:04
Status: Open
Category: Feature
Assigned:
Priority: 3
Version: all
OS: all/all/all

Description: Have a look at htmLawed at http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php. htmLawed is a highly customizable, 45 kb, single file, non-OOP PHP script to filter and purify HTML. Besides restricting tags/elements, attributes and URL protocols as per one's specification, and balancing HTML tags and ensuring valid tag nesting/well-formedness, it also has good anti-XSS and anti-spam measures.