Register the no-escape escape functionality in handlebars
Before, handlebars automatically applied html escaping, which resulted in <>'& beeing escaped. But we don't need to escape for terminal output.
This commit is contained in:
parent
4b906f27b1
commit
de69d31a58
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ impl ImagLogger {
|
|||
pub fn new(matches: &ArgMatches, config: Option<&Configuration>) -> Result<ImagLogger> {
|
||||
let mut handlebars = Handlebars::new();
|
||||
|
||||
handlebars.register_escape_fn(::handlebars::no_escape);
|
||||
|
||||
handlebars.register_helper("black" , Box::new(self::template_helpers::ColorizeBlackHelper));
|
||||
handlebars.register_helper("blue" , Box::new(self::template_helpers::ColorizeBlueHelper));
|
||||
handlebars.register_helper("cyan" , Box::new(self::template_helpers::ColorizeCyanHelper));
|
||||
|
|
Loading…
Reference in a new issue