From 372e1b266215a526eb33aa4fc8443ecab0c5ea60 Mon Sep 17 00:00:00 2001 From: Frank <33519926+Conengmo@users.noreply.github.com> Date: Sat, 5 Nov 2022 16:50:44 +0100 Subject: [PATCH] escape colormap caption --- branca/templates/color_scale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/branca/templates/color_scale.js b/branca/templates/color_scale.js index 5437813..fd43d3c 100644 --- a/branca/templates/color_scale.js +++ b/branca/templates/color_scale.js @@ -51,5 +51,5 @@ {{this.get_name()}}.g.call({{this.get_name()}}.xAxis).append("text") .attr("class", "caption") .attr("y", 21) - .text('{{ this.caption }}'); + .text({{ this.caption|tojson }}); {% endmacro %} \ No newline at end of file