Login   Register  
PHP Classes
elePHPant
Icontem

Antz_TagFilter: Strip malicious tags from HTML documents

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-01-15 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 508 All time: 5,263 This week: 1,384Up
Version License PHP version Categories  
antz_tagfilter 1.0GNU General Public Lice...5.0HTML, PHP 5, Security
Description Author  

This class can be used to strip malicious tags from HTML documents.

It takes as parameters lists of authorized and denied tags and attributes.

The class parses an HTML document to keep authorized tags and removing denied tags and attributes combinations.

It returns the HTML of the resulting filtered document.

Picture of Anthony Gallon
Name: Anthony Gallon is available for providing paid consulting. Contact Anthony Gallon .
Classes: 2 packages by
Country: New Zealand New Zealand
Age: ???
All time rank: 16159 in New Zealand New Zealand
Week rank: 1721 Down5 in New Zealand New Zealand Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file Antz_TagFilter.php Class Main class file
Plain text file Config.php Class Config class file
Accessible without login HTML file example1-output.php Output Output generated by example1.php
Accessible without login Plain text file example1-source.php Example Example for basic use
Accessible without login HTML file example2-output.php Output Output generated by example2-source.php
Accessible without login Plain text file example2-source.php Example Uses config object with get() and set() methods and array configurations (could be fast for .ini configs)
Accessible without login HTML file example3-output.php Output Output generated by example3.php
Accessible without login Plain text file example3-source.php Example Uses config object in natural OOP style

Downloadantz_tagfilter-2010-01-15.zip 8KB
Downloadantz_tagfilter-2010-01-15.tar.gz 4KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
phpQuery Download .zip .tar.gz Provides DOM manipulation Required
 Version Control Unique User Downloads Download Rankings  
 0%Total:508All time:5,263
 This week:0This week:1,384Up
 User Comments (1)  
 
Dude! Very nice.
5 years ago (F Philip DeGeorge)
70%StarStarStarStar