W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2006

Tidy and PHP code

From: Lindsay Haisley <fmouse-m14acd@fmp.com>
Date: Fri, 10 Mar 2006 13:25:34 -0600
To: html-tidy@w3.org
Message-ID: <20060310192534.GF14043@fmp.com>

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)     |
Received on Sunday, 12 March 2006 04:24:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:56 UTC