HTML Sanitizer 1.0

HTML Sanitizer takes a string with HTML code and strips all the tags that do not make part of a list of safe tags. That list of safe tags is defined as a private class variable. There are some functions to allow usually unsafe tags like script, style, object, embed, etc..

Unsafe tag attributes, such as JavaScript ones for event handling, can also be stripped. The links href attributes also gets special treatment to remove URLs that trigger JavaScript code execution and line breaks.

Requirements:
PHP 4 or higher

License type: GPL - GNU General Public License
Date added: 6 years, 1 month ago | Last updated: 6 years, 1 month ago

More popular HTML

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

html-sanitizer
  • COPYING
  • 17.5 KB
  • 09/24/2008 07:46:16
Hot Scripts
Sponsors