diff options
Diffstat (limited to 'ext/bg/js/util.js')
| -rw-r--r-- | ext/bg/js/util.js | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js index 64c79ab5..593e7d03 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -504,9 +504,13 @@ function jsonLoadDb(indexUrl, indexLoaded, termsLoaded, kanjiLoaded) {   * Helpers   */ +function handlebarsEscape(text) { +    return Handlebars.Utils.escapeExpression(text); +} +  function handlebarsDumpObject(options) {      const dump = JSON.stringify(options.fn(this), null, 4); -    return Handlebars.Utils.escapeExpression(dump); +    return handlebarsEscape(dump);  }  function handlebarsKanjiLinks(options) { |