From 422861dbc786565de99dc6cfe3ac755b92038e77 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Thu, 23 Jun 2022 10:52:13 +0200 Subject: [PATCH] render background source labels as text, not html --- modules/ui/panels/background.js | 2 +- modules/ui/sections/background_list.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/panels/background.js b/modules/ui/panels/background.js index 80cba011c..cd167db30 100644 --- a/modules/ui/panels/background.js +++ b/modules/ui/panels/background.js @@ -33,7 +33,7 @@ export function uiPanelBackground(context) { list .append('li') - .html(_currSourceName); + .text(_currSourceName); _metadataKeys.forEach(function(k) { // DigitalGlobe vintage is available in raster layers for now. diff --git a/modules/ui/sections/background_list.js b/modules/ui/sections/background_list.js index 49966801c..1fba2a690 100644 --- a/modules/ui/sections/background_list.js +++ b/modules/ui/sections/background_list.js @@ -202,7 +202,7 @@ export function uiSectionBackgroundList(context) { label .append('span') - .html(function(d) { return d.label(); }); + .text(function(d) { return d.label(); }); enter.filter(function(d) { return d.id === 'custom'; }) .append('button') @@ -225,7 +225,7 @@ export function uiSectionBackgroundList(context) { .placement((localizer.textDirection() === 'rtl') ? 'right' : 'left') ) .append('span') - .html('★'); + .text('★'); layerList .call(updateLayerSelections);