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:
@@ -53,6 +53,7 @@ RED.sidebar.info = function() {
|
||||
if (val.length > 30) {
|
||||
val = val.substring(0,30)+" ...";
|
||||
}
|
||||
val = val.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");
|
||||
} else if (type === "number") {
|
||||
val = val.toString();
|
||||
} else if ($.isArray(val)) {
|
||||
|
Reference in New Issue
Block a user