Re: [Templates] Template::Plugin::Clickable

[prev] [thread] [next] [Date index for 2004/12/23]

From: Tatsuhiko Miyagawa
Subject: Re: [Templates] Template::Plugin::Clickable
Date: 19:06 on 23 Dec 2004
On Thu, 23 Dec 2004 12:34:00 +0000
Stephen Quinney <stephen.quinney@xxxxxxxxxxxxxxxxxx.xxxxxx.xx.xx> wrote:

> 
> If I did the Clickable filter and then filtered any special HTML
> characters I would get something like:
> 
> &lt;a href=&quot;http://www.template-toolkit.org/&quot;&gt;&lt;http://www.template-toolkit.org/&gt;&lt;/a&gt;
> 
> Which I really do not want.

Try Template::Plugin::TagRescue.
http://search.cpan.org/~tanimoto/Template-Plugin-TagRescue-0.04/

[% USE Clickable -%]
[% USE TagRescue -%]
[% FILTER html_except_for('a') %]
[% FILTER clickable -%]
<http://www.template-toolkit.org/>;
[%- END %]
[%- END %]

html_except_for filter encodes html meta characters while keeping A tag
alive.

Probably I should put this into the document of ::Clickable.

        -- 
        Tatsuhiko Miyagawa <miyagawa@xxxxxxxx.xxx>


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Template::Plugin::Clickable
Stephen Quinney 12:34 on 23 Dec 2004

Re: [Templates] Template::Plugin::Clickable
Perrin Harkins 16:04 on 23 Dec 2004

Re: [Templates] Template::Plugin::Clickable
Stephen Quinney 16:19 on 23 Dec 2004

Re: [Templates] Template::Plugin::Clickable
Tatsuhiko Miyagawa 18:57 on 23 Dec 2004

Re: [Templates] Template::Plugin::Clickable
Perrin Harkins 19:00 on 23 Dec 2004

Re: [Templates] Template::Plugin::Clickable
Tatsuhiko Miyagawa 19:06 on 23 Dec 2004

Re: [Templates] Template::Plugin::Clickable
Stephen Quinney 19:58 on 23 Dec 2004

Re: [Templates] Template::Plugin::Clickable
Tatsuhiko Miyagawa 06:52 on 24 Dec 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52