On Sat, Dec 13, 2008 at 12:42:17AM +0100, Ansgar Burchardt wrote:
> Hi,
> 
> Chisel Wright <[email protected]> writes:
> > On Fri, Dec 12, 2008 at 11:19:34PM +0100, Ansgar Burchardt wrote:
> >>      [% l("blabla [_1] bar", arg | html) %].
> >
> > It's late and I'm just guessing, but what about?
> >
> >   [% l("blabla [_1] bar", arg) |html %]
> 
> This does not work when there are (wanted) HTML tags anywhere.  It would
> require to split sentences like
>     Please <a href="mailto:...";>contact us</a> if you have any problems.
> into several unrelated parts making them harder to translate.

I have separate localization functions specifically for this reason.
Only the substitution parameters are escaped before placed in the
localization string.

-- 
Bill Moseley
[email protected]
Sent from my iMutt


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

Reply via email to