Login   Register  
PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 6 years ago
Size: 856 bytes
 

Contents

Class file image Download
INTRODUCTION
------------------------------------

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.


HOW TO USE
------------------------------------

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.


REQUIREMENTS
------------------------------------

PHP 5, Tidy extension.