W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2004

Re: use tidy with HTML::Template

From: Stefan Höfs <stefanhoefs@web.de>
Date: Wed, 2 Jun 2004 21:20:48 +0200
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: html-tidy@w3.org
Message-Id: <200406022120.48755.stefanhoefs@web.de>

Am Mittwoch, 2. Juni 2004 01:40 schrieben Sie:
> * Stefan Höfs wrote:
> >I am using HTML::Template to create dynamic webpages with perl.
> >
> >If I use the Template Tag <TMPL_VAR NAME ="name"> inside the <a> tag like:
> >
> ><a href="<TMPL_VAR NAME=path>">
> >tidy converts this to
> ><a href="%3CTMPL_VAR%20NAME=path%3E">
> >
> >Is there any possibility that tidy leaves this Template Tag unaltered?
>
> --fix-uri no would cause Tidy to change it to &lt;TMPL_VAR NAME=path&gt;
> instead. Other than that, no, not really.

Thanks for the reply.
My dirty solution for this problem is now to run sed afterwards:

sed "s/&lt;TMPL_VAR NAME=id&gt;/<TMPL_VAR NAME=id>/g" exp.html
Received on Wednesday, 2 June 2004 15:17:51 GMT

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