Re: use tidy with HTML::Template

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 UTC