Secure HTML parser and filter,XSS,CSRF 1.0

Secure HTML parser and filter,XSS,CSRF is a general purpose parser class to parse any type of markup documents such as HTML, XML and DTD, is included. There are several other classes that can be chained together to retrieve the document token elements returned by the main markup parser class and filter the document elements in an useful way.

The markup validator filter class validates a document against a DTD, eventually removing invalid tags and attributes. The safe HTML filter class uses several white lists to process HTML tags and data returned by the markup validator class and discards potentially harmful HTML tags and CSS that could be used to perform cross-site scripting (XSS) or cross-site request forgery (CSRF) security attacks.

The filtered HTML tokens can be reassembled to return a well-formed and secure HTML document. The HTML links filter class can extract the links contained in an HTML document. The DTD parser and CSS parser are utility classes used by the other classes.

Requirements:
PHP 4.0 or higher

License type: BSD - BSD License
Date added: 5 years, 6 days ago | Last updated: 5 years, 6 days ago

More popular Validation

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

Listing Files

secure-html-parser-and-filter
documentation
test
generated
  • .cvsignore
  • 208 Bytes
  • 08/23/2009 17:14:56
expect
Hot Scripts
Sponsors