PHP Classes

Power HTML Cleaner: Process HTML documents to remove unwanted tags

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,420 All time: 2,631 This week: 1,322Up
Version License Categories  
powerhtmlcleaner 1.0Free for non-comm...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: 36
All time rank: 126312 in Czech Republic Czech Republic
Week rank: 909 Up8 in Czech Republic Czech Republic Up

  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,420All time:2,631
 This week:0This week:1,322Up