Tidy and PHP code

Lindsay Haisley <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Organization FMP Computer Services
Message-ID <[email protected]>
I've have html-tidy (version 5.10.26 for Gentoo Linux) installed on my
desktop system; however, like previous versions of tidy, it misbehaves
rather badly when dealing with embedded PHP sections in pages, notably where
I have the PHP switch markup "<?php" inside a tag, which tidy insists on
rendering as "&lt;?php" in its output.

It appears that much of the functionality of tidy has been incorporated into
recent versions of PHP (including PHP5) which is supposed to fully support
PHP markup; however, it looks as if the PHP calls to tidy are for the
purpose of generating self-cleaning pages, and I'm having the duce of a time
getting something that will work as an external app for bluefish, which is
my HTML and PHP editor.  Bluefish requires a CLI program to use as a filter. 
Cleaned up pages are sent back to bluefish via stdout.

So I'm rather stuck at this point.  Does anyone have any ideas how I get a
working version of tidy that properly handles PHP code, or where I can go
for help with this?


-- 
Lindsay Haisley       | "Fighting against human |     PGP public key
FMP Computer Services |    creativity is like   |      available at
512-259-1190          |    trying to eradicate  | <http://pubkeys.fmp.com>
http://www.fmp.com    |        dandelions"      |
                      |      (Pamela Jones)     |
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.