PHP Classes

Clean Output: Reformat HTML and XML documents

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 54%Total: 1,628 All time: 2,420 This week: 455Up
Version License PHP version Categories
cleanoutput 2Free for non-comm...5HTML, XML, PHP 5
Description 

Author

This class can be used to reformat HTML or XML documents.

It can read a string with HTML or XML and indent its lines according to the depth of the tags and data.

Optional it can show in the outputted document a trace of the indentation level.

Picture of Jon Gjengset
Name: Jon Gjengset is available for providing paid consulting. Contact Jon Gjengset .
Classes: 10 packages by
Country: Norway Norway
Age: 34
All time rank: 2301 in Norway Norway
Week rank: 200 Up2 in Norway Norway Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (2)  
File Role Description
Plain text file cleanmyhtml.class.php Class The CleanOutput class
Accessible without login Plain text file cleanoutput.example.php Example Example of usage of the CleanOutput class

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,628
This week:0
All time:2,420
This week:455Up
 User Ratings  
 
 All time
Utility:82%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:64%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:2010