PHP Classes
Icontem

Class: HTML Sanitizer


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Frédéric Minne  >  HTML Sanitizer  >  Download  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: HTML Sanitizer Support forum
Base name: htmlsanitizer
Description: Remove unsafe tags and attributes from HTML code
Related top rated classes: , , ,
Version: 1.0
Required PHP version: 4
License: GNU General Public License (GPL)
All time users: 1812 users
All time rank: 1500
Week users: 11 users
Week rank: 666
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Trackback   Applications   Files Files  

Author

Picture of Frédéric Minne
Name: Frédéric Minne <e-mail contact>
Published packages: 2 Browse this author's classes Browse this author's classes
Country: Belgium Belgium - PHP jobs in Belgium
Home page: http://zefredz.frimouvy.org/
Age: 30
All time rank: 636
Week rank: 359

Groups

Group folder image HTML HTML generation and processing View top rated classes
Group folder image Security Security protection and attack detection View top rated classes

Detailed description

This class can be used to remove unsafe tags and attributes from HTML code.

It 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..

The class can also remove unsafe tag attributes, such as those that define Javascript code to handle events.

The links href attributes also gets special treatment to remove URLs that trigger Javascript code execution and line breaks.

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (85.0%)
Good (85.0%)
-
Sufficient (65.0%)
-
-
Not sure (57.5%)
861
Month:
Not yet rated by the users

Trackback links

Link Description
PHP SQL Injection and XSS detection program -
PHP Security PHP code security and XSS, SQL injection and other types of sites for the safety of a very used, in particular, UGC (User Generated Content) sites, forums and e-commerce sites, often XSS and SQL injection is the hardest hit...
PHP SQL Injection and XSS detection program -

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file COPYING Lic. GNU LGPL
Plain text file sample.php Example Example
Plain text file sanitizer.class.php Class HTML_Sanitizer class
Download all files: htmlsanitizer.tar.gz htmlsanitizer.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products