PHP Classes

Antz_TagFilter: Strip malicious tags from HTML documents

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 560 All time: 5,442 This week: 455Up
Version License PHP version Categories
antz_tagfilter 1.0GNU General Publi...5.0HTML, PHP 5, Security


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: 168110 in New Zealand New Zealand
Week rank: 298 Up2 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 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  
This week:0
All time:5,442
This week:455Up
User Comments (1)
Dude! Very nice.
14 years ago (F Philip DeGeorge)