mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Handle node name as unsanitized text in debug sidebar
This commit is contained in:
parent
28e08ebaf5
commit
3f1b0b986f
@ -449,7 +449,7 @@ RED.debug = (function() {
|
|||||||
var metaRow = $('<div class="debug-message-meta"></div>').appendTo(msg);
|
var metaRow = $('<div class="debug-message-meta"></div>').appendTo(msg);
|
||||||
$('<span class="debug-message-date">'+ getTimestamp()+'</span>').appendTo(metaRow);
|
$('<span class="debug-message-date">'+ getTimestamp()+'</span>').appendTo(metaRow);
|
||||||
if (sourceNode) {
|
if (sourceNode) {
|
||||||
$('<a>',{href:"#",class:"debug-message-name"}).html('node: '+(sourceNode.name||sourceNode.id))
|
$('<a>',{href:"#",class:"debug-message-name"}).text('node: '+(sourceNode.name||sourceNode.id))
|
||||||
.appendTo(metaRow)
|
.appendTo(metaRow)
|
||||||
.click(function(evt) {
|
.click(function(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user