Login   Register  
PHP Classes
elePHPant
Icontem

Power HTML Cleaner: Process HTML documents to remove unwanted tags

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 (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-04-20 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,417 All time: 2,566 This week: 1,534Up
Version License Categories  
powerhtmlcleaner 1.0Free for non-commercial...HTML
Description Author  

This class can be used to process and remove unwanted tags from HTML documents.

It can take a list of names of tags to keep as parameters. Then it replaces the allowed tags by pseudo-tags. The remaining tags are removed and the original tags are restored in the final pass.

The resulting HTML document is stored in a class variable but it can also be saved back to a file.

Picture of Martin Sadera
Name: Martin Sadera <contact>
Classes: 2 packages by
Country: Czech Republic Czech Republic
Age: 35
All time rank: 122412 in Czech Republic Czech Republic
Week rank: 1642 Down15 in Czech Republic Czech Republic Down

  Files folder image Files  
File Role Description
Accessible without login HTML file cleaned-test.htm Output cleaned test HTML file
Plain text file cleanhtml.class.php Class main clean class
Accessible without login Plain text file example1.php Example Example script 1
Accessible without login Plain text file example2.php Example Example script 2
Accessible without login HTML file test.htm Data test HTML file

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,417All time:2,566
 This week:0This week:1,534Up