note 87877 added to function.tidy-get-output
| From: | jon+php_net at phpsitesolutions dot com | Date: | Sun, 28 Dec 2008 16:31:20 +0000 |
| Subject: | note 87877 added to function.tidy-get-output | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148612@lists.php.net to get a copy of this message | ||
If you don't feel like going procedural to get the HTML output, you can simple use this
alternative:
<?php
$html = <<<HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head><title>title</title></head>
<body>
<p>paragraph <br />
text</p>
</body></html>
HTML;
$tidy = new tidy;
$tidy->parseString($html);
$tidy->cleanRepair();
echo $tidy->html()->value;
?>
----
Server IP: 62.237.7.3
Probable Submitter: 24.40.216.236
----
Manual Page -- http://www.php.net/manual/en/function.tidy-get-output.php
Edit -- https://master.php.net/note/edit/87877
Del: integrated -- https://master.php.net/note/delete/87877/integrated
Del: useless -- https://master.php.net/note/delete/87877/useless
Del: bad code -- https://master.php.net/note/delete/87877/bad+code
Del: spam -- https://master.php.net/note/delete/87877/spam
Del: non-english -- https://master.php.net/note/delete/87877/non-english
Del: in docs -- https://master.php.net/note/delete/87877/in+docs
Del: other reasons-- https://master.php.net/note/delete/87877
Reject -- https://master.php.net/note/reject/87877
Search -- https://master.php.net/manage/user-notes.php