Login   Register  
PHP Classes

Class: Antz_TagFilter

Icontem
elePHPant

  Classes of Anthony Gallon  >  Antz_TagFilter  >  Download  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Antz_TagFilter Support forum
Base name: antz_tagfilter
Description: Strip malicious tags from HTML documents
Version: -
Required PHP version: 5.0
License: GNU General Public License (GPL)
 
  Author   Group folder image Groups   Detailed description  
  Dependencies   Applications   Files Files  

Author

Picture of Anthony Gallon
Name: Anthony Gallon <e-mail contact>
Published packages: 2 Browse this author's classes Browse this author's classes
Country: New Zealand New Zealand - PHP jobs in New Zealand
Home page: http://www.antzcode.com/

Groups

Group folder image HTML HTML generation and processing View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features 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 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.

Packages needed by this class

Class Dependency Why it is needed
phpQuery
Required
Provides DOM manipulation

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 Antz_TagFilter.php Class Main class file
Plain text file Config.php Class Config class file
HTML file example1-output.php Output Output generated by example1.php
Plain text file example1-source.php Example Example for basic use
HTML file example2-output.php Output Output generated by example2-source.php
Plain text file example2-source.php Example Uses config object with get() and set() methods and array configurations (could be fast for .ini configs)
HTML file example3-output.php Output Output generated by example3.php
Plain text file example3-source.php Example Uses config object in natural OOP style
Download all files: antz_tagfilter.tar.gz antz_tagfilter.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.