[dancer-users] Best practice to escape HTML entities in Dancer2 and TT

Shlomi Fish shlomif at shlomifish.org
Sat Feb 10 11:42:01 GMT 2018

Hi Lutz,

On Sat, 10 Feb 2018 11:15:07 +0100
Lutz Gehlen <lrg_ml at gmx.net> wrote:

> Hello all,
> in Dancer1, I have been using Dancer::Plugin::EscapeHTML to 
> automatically escape HTML entities in server generated output. I 
> have never tried to figure out how it does its job, but it seemed to 
> do what I needed.
> I have not found a similar plugin for Dancer2. However, this must be 
> a widespread problem, isn't it? What is the best practice to 
> automatically escape HTML entities with Dancer2 and 
> Template::Toolkit?

perhaps see https://metacpan.org/release/Template-Stash-AutoEscaping . Note
that it is a fork by me of a different module.

> Thank you and best wishes,
> Lutz
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Shlomi Fish       http://www.shlomifish.org/
First stop for Perl beginners - http://perl-begin.org/

Flock aims to be the browser for the social web, but I found it to be the
completely anti-social browser.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

More information about the dancer-users mailing list