fix escaping in the template
This commit is contained in:
parent
7cfe2fc5dc
commit
661b4a8869
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue