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
More popular Validation
- Oziam Captcha 1.0 (2 years, 8 months 28 days ago)
- DRB Image Verification 1.0 (2 years, 8 months 12 days ago)
- PHP CAPTCHA with Refresh 1.0 (4 years, 4 months 13 days ago)
- PHP Captcha System. No DB required 3.0 (4 years, 4 months 29 days ago)
- Mobile Verification 1.0 (4 years, 7 months 28 days ago)
Listing Files

secure_html_filter.php- 5.2 KB
- 08/23/2009 17:14:56

markup_filter_safe_html_class.html- 25.5 KB
- 08/23/2009 17:14:56

markup_parser_class.html- 19.7 KB
- 08/23/2009 17:14:56

test_get_html_links.php- 2.0 KB
- 08/23/2009 17:14:56

markup_filter_safe_html.php- 41.7 KB
- 08/23/2009 17:14:56

css_parser.php- 24.5 KB
- 08/23/2009 17:14:56

test_markup_parser.php- 2.1 KB
- 08/23/2009 17:14:56

markup_parser.php- 71.3 KB
- 08/23/2009 17:14:56

.cvsignore- 208 Bytes
- 08/23/2009 17:14:56

unfinishedtagattribute.txt- 464 Bytes
- 08/23/2009 17:14:56

entities.txt- 5.5 KB
- 08/23/2009 17:14:56

unicodestylevalues.txt- 1.6 KB
- 08/23/2009 17:14:56

unfinishedtagend.txt- 387 Bytes
- 08/23/2009 17:14:56

quoteseparatingunsafeattribute.txt- 249 Bytes
- 08/23/2009 17:14:56

safehtmlfilter.txt- 468 Bytes
- 08/23/2009 17:14:56
- FREE MySQL Cloud Database Super Simple, Zero-Management MySQL Cloud DB. Use It FREE!
- Pinterest clone Start your own pin board social network today. Get Pintastic and start your own pinterest clone network.
- MYRE Real Estate Software Professional Real Estate solutions by MYREPHP PROGRAMMING!
