PHP Classes

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    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 1,432 This week: 1All time: 2,728 This week: 560Up
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: 44
All time rank: 131513 in Czech Republic Czech Republic
Week rank: 411 Up4 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,432
This week:1
All time:2,728
This week:560Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1433