fix escaping in the template

This commit is contained in:
Kaczanowski Mateusz 2020-10-28 01:16:56 +01:00
parent 7cfe2fc5dc
commit 661b4a8869

View file

@ -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
}