tidy_parse_string
Parse a document stored in a string
DescriptionProcedural style:resourcetidy_parse_stringstringinputmixedconfigstringencodingObject oriented style:booltidy->parseStringstringinputmixedconfigstringencodingtidy_parse_string parses a document stored in a
string.
&tidy.conf-enc;
tidy_parse_string exampletest
error another line
TRUE,
'output-xhtml' => TRUE,
'wrap' => 200);
$tidy = tidy_parse_string($buffer, $config, 'UTF8');
$tidy->cleanRepair();
echo $tidy;
?>
]]>
The above example will output:
test
error
another line
]]>
¬e.tidy.2only;
See also tidy_parse_file,
tidy_repair_file and
tidy_repair_string.