Plugins/Modules > Security free Script - htmLawed

Security free Script - htmLawed


Date: 18 January 2011 | Posted by: 360km
Security free Script - htmLawed


Security free Script - htmLawed


PHP code to purify & filter HTML

Source: http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php

Info:
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
free and licensed under LGPL
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.

DEMO:
http://9.bb/156793/htmlawedtest


DOWNLOAD:
http://9.bb/156793/htmlawed-download





See full article