Skip to content

Commit

Permalink
Fix: allow target="_blank" in attribute table cells
Browse files Browse the repository at this point in the history
  • Loading branch information
nboisteault committed Dec 12, 2024
1 parent 2fc913e commit 2b8eb66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/src/legacy/attributeTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2b8eb66

Please sign in to comment.