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

Lutz Gehlen lrg_ml at gmx.net
Sat Feb 10 10:15:07 GMT 2018


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?

Thank you and best wishes,
Lutz



More information about the dancer-users mailing list