note 47492 added to ref.tidy
| From: | ccosentino at gmail dot com | Date: | Thu, 18 Nov 2004 02:42:57 +0000 |
| Subject: | note 47492 added to ref.tidy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80681@lists.php.net to get a copy of this message | ||
I did the pear install on PHP 4.3.8
follow the directions above to install libtidy, they work great!
then run the pear install (see directions at top of this page).
Then, and it took mw a while to figure this out, you need to call the extension in your scripts:
<?php
dl("tidy.so");
$tidy = tidy_parse_file('file.html')
...
?>
Works quite nicely.
----
Manual Page -- http://www.php.net/manual/en/ref.tidy.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47492
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47492&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47492&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47492&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47492&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47492&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47492&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47492&report=yes
Search -- http://master.php.net/manage/user-notes.php