diff --git a/Cargo.toml b/Cargo.toml index 4d40f78..b0886e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ flatbuffers = "0.6.1" structopt = "0.3.17" structopt-derive = "0.4.10" num_cpus = "1.0" -handlebars = "3.0.1" +handlebars = "3.5.3" tempdir = "0.3.7" speculate = "0.1.2" chrono = "0.4.11" diff --git a/src/formatter.rs b/src/formatter.rs index f91072a..fb76c56 100644 --- a/src/formatter.rs +++ b/src/formatter.rs @@ -1,9 +1,8 @@ -use handlebars::{Handlebars, JsonRender, no_escape}; +use handlebars::{Handlebars, JsonRender}; 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 } diff --git a/static/index.html b/static/index.html index 14c5b4e..0665277 100644 --- a/static/index.html +++ b/static/index.html @@ -304,7 +304,7 @@ var uri_prefix="{{uri_prefix}}"; function init_plugins() { - {{#each js_init as |fn|}}{{fn}} + {{#each js_init as |fn|}}{{{fn}}} {{/each}} }