From 661b4a8869e80c955be2ffc718dc9a2319420668 Mon Sep 17 00:00:00 2001 From: Kaczanowski Mateusz Date: Wed, 28 Oct 2020 01:16:56 +0100 Subject: [PATCH] fix escaping in the template --- src/formatter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/formatter.rs b/src/formatter.rs index fb76c56..f91072a 100644 --- a/src/formatter.rs +++ b/src/formatter.rs @@ -1,8 +1,9 @@ -use handlebars::{Handlebars, JsonRender}; +use handlebars::{Handlebars, JsonRender, no_escape}; pub fn new<'r>() -> Handlebars<'r> { let mut handlebars = Handlebars::new(); handlebars.register_helper("format_url", Box::new(format_helper)); + handlebars.register_escape_fn(no_escape); handlebars }