PHP Classes

Valid Markup: Convert the HTML output to XHTML using Tidy

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-05-02 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 492 All time: 5,421 This week: 1,401Up
Version License PHP version Categories  
validmarkup 1.0MIT/X Consortium ...5HTML, XML, PHP 5
Description Author  

This is a very simple class that can convert the HTML output of a page to XHTML using the Tidy extension.

It starts output buffering using the ob_tidyhandler function as filter to make it regenerate the current script HTML output to make sure it is formatted as XHTML.

The class may set the DTD to one of several possible HTML and XHTML versions.

Picture of Vagharshak Tozalakyan
Name: Vagharshak Tozalakyan <contact>
Classes: 28 packages by
Country: Armenia Armenia
Age: 35
All time rank: 61 in Armenia Armenia
Week rank: 34 Down1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 7x

  Files folder image Files  
File Role Description
Plain text file class.ValidMarkup.php Class Class source
Accessible without login Plain text file example.php Example Example of usage
Accessible without login Plain text file readme.txt Doc. How to use

 Version Control Unique User Downloads Download Rankings  
 0%Total:492All time:5,421
 This week:0This week:1,401Up