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

Warren Young warren at etr-usa.com
Mon Feb 19 18:06:15 GMT 2018

On Feb 19, 2018, at 10:59 AM, Warren Young <warren at etr-usa.com> wrote:
> Since you seem to have an itch here, how about you port the plugin? 

I was just reading more of that Stack Overflow page, and the *second* answer is by brian d foy, who points out that HTML::Escape is either 2 or 20x faster than HTML::Entities in his testing, depending on whether he uses the native Perl version or the XS version:


Since D2 is normally installed via automatic CPAN retrieval tools rather than by manually unpacking tarballs, the nonstandard dependency shouldn’t be a problem for your new plugin, unless you have existing installations at sites without reliable Internet access.

More information about the dancer-users mailing list