PHP Classes

Power HTML Cleaner: Process HTML documents to remove unwanted tags

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 1,432 All time: 2,728 This week: 488Up
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 (5)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,432
This week:0
All time:2,728
This week:488Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1478