PHP Classes

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Vagharshak Tozalakyan  >  Valid Markup  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: How to use
Class: Valid Markup
Convert the HTML output to XHTML using Tidy
Author: By
Last change:
Date: 7 years ago
Size: 856 bytes


Class file image Download

ValidMarkup is a small helper class which uses 
the Tidy extension to clean and repair invalid 
HTML output according to W3 standards. The class 
also may be used to convert the HTML markup to 
XHTML and vice versa.


Just construct the ValidMarkup object BEFORE any 
output in your script.

__construct(string $doctype)

Following doctypes may be used:

'HTML 4.01 Strict'
'HTML 4.01 Transitional' 
'HTML 4.01 Frameset' 
'XHTML 1.0 Strict'
'XHTML 1.0 Strict'
'XHTML 1.0 Strict'
'XHTML 1.1'
'HTML 3.2'
'HTML 2.0' 

If no doctype is specified then 'XHTML 1.0 Transitional' 
will be used. 

Please see "example.php" to get an example of usage.


PHP 5, Tidy extension.