Commit 0d596cd1 authored by Jörg Richter's avatar Jörg Richter

Fix: render `&` in SVG topic labels

Closes dmx-platform/dmx-platform#294
parent 1a033cff
Pipeline #8170 passed with stage
in 3 seconds
......@@ -306,7 +306,7 @@ function _renderNode (label, icon, iconColor, backgroundColor) {
function nodeLabel (label) {
label = label.length > MAX_LABEL_LENGTH ? label.substr(0, MAX_LABEL_LENGTH) + '' : label
label = label.replace(/</g, '&lt;')
label = label.replace(/&/g, '&amp;').replace(/</g, '&lt;') // TODO: move to utils?
return label
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment