On Thu, 23 Dec 2004 12:34:00 +0000
Stephen Quinney <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to