From 2b8eb66701286b3216cd27936e3a2926fbc7ef59 Mon Sep 17 00:00:00 2001 From: nboisteault Date: Thu, 12 Dec 2024 11:32:23 +0100 Subject: [PATCH] Fix: allow `target="_blank"` in attribute table cells --- assets/src/legacy/attributeTable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/src/legacy/attributeTable.js b/assets/src/legacy/attributeTable.js index 4eaa8ceba1..0c56f8f880 100644 --- a/assets/src/legacy/attributeTable.js +++ b/assets/src/legacy/attributeTable.js @@ -1884,7 +1884,9 @@ var lizAttributeTable = function() { continue; var prop = feat.properties[idx]; if (typeof prop == 'string') { - prop = DOMPurify.sanitize(prop); + prop = DOMPurify.sanitize(prop, { + ADD_ATTR: ['target'] + }); } line[idx] = prop; }