mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Escape html chars in Inject/Debug and Info pane
This commit is contained in:
@@ -379,7 +379,7 @@
|
||||
},
|
||||
button: {
|
||||
onclick: function() {
|
||||
var label = this.name||this.payload;
|
||||
var label = (this.name||this.payload).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");
|
||||
d3.xhr("inject/"+this.id).post(function(err,resp) {
|
||||
if (err) {
|
||||
if (err.status == 404) {
|
||||
|
Reference in New Issue
Block a user