PHP Classes

Antz_TagFilter: Strip malicious tags from HTML documents

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 560 All time: 5,444 This week: 455Up
Version License PHP version Categories
antz_tagfilter 1.0GNU General Publi...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: 168310 in New Zealand New Zealand
Week rank: 170 Up2 in New Zealand New Zealand Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (8)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
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:560
This week:0
All time:5,444
This week:455Up
User Comments (1)
Dude! Very nice.
15 years ago (F Philip DeGeorge)
70%StarStarStarStar