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. |