diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/config.rs b/src/config.rs index ab92108..3b36ad2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -85,13 +85,9 @@ impl State { handlebars: { let mut hb = Handlebars::new(); - handlebars_helper!(html_escape: |s: String| htmlize::escape_text(s)); - handlebars_helper!(html_attr_escape: |s: String| htmlize::escape_attribute(s)); handlebars_helper!(url_encode: |s: String| urlencoding::encode(&s)); - hb.register_helper("html-escape", Box::new(html_escape)); - hb.register_helper("html-attr-escape", Box::new(html_attr_escape)); - hb.register_helper("url-encode", Box::new(html_attr_escape)); + hb.register_helper("url-encode", Box::new(url_encode)); for (key, fulltext) in INTERNAL_THEMES { log::info!(target: "lfm::config::theme", "Registering internal theme `{key}`"); |