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

Re: <% symbols causing issues with Tidy

From: Fred Bone <Fred.Bone@dial.pipex.com>
Date: Tue, 20 Aug 2002 17:38:00 +0100
To: html-tidy@w3.org
Message-ID: <3D627E78.43.3D5AE7B@localhost>

On 19 Aug 2002 at 15:10, Aravind wrote:

>   I am using JTidy to clean up HTML files.I observed that 
> when html content contains '<%' symbols, tidy truncates 
> the content at that point.For eg:, the following content, 
> when passed through Tidy,
>   
>   #
>   #The following formula is used to calculate the % 
> utilization:
>   #<% util>*<speed(bit/sec)>*<interval(sec)>/(100*8)
>   #
> 
> 
> gets truncated/transformed to 
> 
> <html>
> <head>
> <title></title>
> </head>
> <body>
> ##The following formula is used to calculate the % 
> utilization: #
> </body>
> </html>

"<%" is the ASP open delimiter. It looks as though Tidy is getting 
confused by the absence of a matching "%>".

As there isn't an "ignore-asp-delmiters" option, I think your best 
bet would be to use an editor to replace all instances of "<%" with 
"&lt;%" before running Tidy.
Received on Tuesday, 20 August 2002 12:39:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:52 GMT