php-html-safe

strip down all potentially dangerous content within HTML

Description

This parser strips down all potentially dangerous content within HTML:
 * opening tag without its closing tag
 * closing tag without its opening tag
 * any of these tags: "base", "basefont", "head", "html", "body", "applet",
   "object", "iframe", "frame", "frameset", "script", "layer", "ilayer",
   "embed", "bgsound", "link", "meta", "style", "title", "blink", "xml", etc.
 * any of these attributes: on*, data*, dynsrc
 * javascript:/vbscript:/about: etc. protocols
 * expression/behavior etc. in styles
 * any other active content

It also tries to convert code to XHTML valid, but htmltidy is far better solution for this task.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

http://pear.php.net/package/HTML_Safe


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install php-html-safe