Login   Register  
PHP Classes
elePHPant
Icontem

allowHTML

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Simon Emery
Name: Simon Emery <e-mail contact>
Packages: 1 Browse all classes by Simon Emery Browse all classes by
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Age: ???
All time rank: 2593118 in United Kingdom United Kingdom
Week rank: 2074 Up84 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This class can be used to filter insecure HTML following OWASP AntiSamy rules.

It can parse HTML documents using DOM document objects and then remove unsafe tags, attributes and CSS parameters.

It uses a configurable whitelist to determine which tags, attributes and CSS style parameters are allowed.

The class may also apply filtering rules defined in a separate AntiSamy XML rules file.

  Classes of Simon Emery  >  allowHTML  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: allowHTML
Base name: allowhtml
Description: Filter insecure HTML following OWASP AntiSamy
Version: 1.0.0
PHP version: 5
License: BSD License
All time users: 575 users
All time rank: 4542
Week users: 0 users
Week rank: 2045 Equal
 
  Groups   Freshmeat project   Rate classes User ratings  
  Applications   Related links   Files Files  

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


  Innovation Award  
PHP Programming Innovation award nominee
December 2010
Number 9
AntiSamy is a project of OWASP to define rules that secure applications must apply to HTML in order to filter insecure tags.

This class is secure HTML filter that can apply OWASP AntiSamy rules.

Manuel Lemos

  Freshmeat project  
Project record: allowhtml
Popularity score: 39.05
Vitality score: 30.02

  User ratings  
There are not enough user ratings to display for this class.

  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.

  Related links  
Link Description
Demo Site Pass any html into the demo to see how it is dealt with

  Files folder image Files  
File Role Description
Files folder imageexample (1 file)
Files folder imagexml (1 file)
Plain text file allowHTML.php Class Main class

  Files  /  Files folder image example  
File Role Description
  Accessible without login Plain text file example.php Example Example of class usage

  Files  /  Files folder image xml  
File Role Description
  Plain text file antisamy.xml Aux. Anti-Samy XML policy file

Download all files: allowhtml.tar.gz allowhtml.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.