PHP Classes
elePHPant
Icontem

Power HTML Cleaner: Process HTML documents to remove unwanted tags

Recommend this page to a friend!
  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 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,422 All time: 2,650 This week: 851Up
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

  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,422
This week:0
All time:2,650
This week:851Up