W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 1999

How do I get Tidy to ignore my PHP code blocks

From: Richard Allsebrook <Richard.Allsebrook@easysoft.com>
Date: Thu, 22 Jul 1999 11:24:30 +0100
Message-ID: <D1E48F0DACF1D21188AD006097316DAB17F919@winter.easysoft.com>
To: html-tidy@w3.org
How do I get Tidy to ignore my PHP code blocks

A PHP code block is defined as

<? Php code goes here ?>

Thanks in advance
Richard Allsebrook
Webmaster - Easysoft Limited
* No 3 the Embankments, Leeds LS1 4BJ, UK
*+44 0113 2220400

		-----Original Message-----
		From:	Peter Lewerin [mailto:peter.lewerin@krax.pp.se]
		Sent:	21 July 1999 22:52
		To:	html-tidy@w3.org
		Subject:	doctype loop in tidy7jul99

		There seems to be a problem with the doctype handling in the
July 7
		release.  My limited testing shows that if 1) I specify
"doctype: strict"
		(or loose or transitional, but not omit, auto or
		4.0//EN") in a configuration file, and 2) the HTML document
to be tidied
		begins with a <!DOCTYPE html PUBLIC "-//W3C//DTD HTML
4.0//EN"> line, Tidy
		outputs the normal messages to STDERR but only an "endless"
repetition of
		doctype declarations to STDOUT (I became suspicious when my
index.html file
		contained 2,695,007  doctype declarations (137,445,376
byte) but no
		HTML... ;-) ).

		There is, of course, the possibility that I am doing
something wrong.
		Having four months old twins, you never seem to get enough

		Also baffling (to me, at least):

		When I tidy the following simple HTML:


		like this:

		tidy -config tidy.cfg try.html >try2.html

		and tidy.cfg contains:

		clean: yes
		doctype: strict
		char-encoding: latin1

		I get:

		Tidy (vers 7th July 1999) Parsing "try.html"

		"try.html" appears to be HTML 2.0
		no warnings or errors were found

		and try2.html looks like this:

		<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">

		and I tidy try2.html, like this:

		tidy -config tidy.cfg try2.html

		I get:

		Tidy (vers 7th July 1999) Parsing "try2.html"
		line 6 column 1 - Warning: discarding unexpected </html>

		"try2.html" appears to be HTML 2.0
		1 warnings/errors were found!

		<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
		<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">

		HTML & CSS specifications are available from
		To learn more about Tidy see
		Please send bug reports to Dave Raggett care of
		Lobby your company to join W3C, see


		The 'tags' seem to be dereferenced dangling pointers (the
string is
		"l\1\3").  I am using the Win32 console .exe from the
archive on a Win98
		system.  Recompiling with DJGPP for a DOS Protected mode
executable gives
		the same results.
Received on Thursday, 22 July 1999 06:25:53 UTC

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