mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Sanitize unknown node type when displaying
This commit is contained in:
parent
70b6674f44
commit
7cb499cde9
@ -960,7 +960,11 @@ RED.nodes = (function() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
if (!isInitialLoad && unknownTypes.length > 0) {
|
if (!isInitialLoad && unknownTypes.length > 0) {
|
||||||
var typeList = "<ul><li>"+unknownTypes.join("</li><li>")+"</li></ul>";
|
var typeList = $("<ul>");
|
||||||
|
unknownTypes.forEach(function(t) {
|
||||||
|
$("<li>").text(t).appendTo(typeList);
|
||||||
|
})
|
||||||
|
typeList = typeList[0].outerHTML;
|
||||||
RED.notify("<p>"+RED._("clipboard.importUnrecognised",{count:unknownTypes.length})+"</p>"+typeList,"error",false,10000);
|
RED.notify("<p>"+RED._("clipboard.importUnrecognised",{count:unknownTypes.length})+"</p>"+typeList,"error",false,10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user