Re: How do I get Tidy to ignore my PHP code blocks

On Thu, 22 Jul 1999, Richard Allsebrook wrote:

> How do I get Tidy to ignore my PHP code blocks
> 
> A PHP code block is defined as
> 
> <? Php code goes here ?>

Tidy recognizes <? ...?> as an XML Processing instruction
and preserves these, e.g. the test file

  <title>test</title>
  <p>Hello <?brave new?> world.

is tidied to

  <html>
  <head>
  <title>test</title>
  </head>
  <body>
  <p>Hello <?brave new?> world.</p>
  </body>
  </html>

Do you want a means to strip processing instructions?

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)

Received on Thursday, 22 July 1999 06:38:29 UTC