Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jgraph/drawio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/js/grapheditor/EditorUi.js')
-rw-r--r--src/main/webapp/js/grapheditor/EditorUi.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/webapp/js/grapheditor/EditorUi.js b/src/main/webapp/js/grapheditor/EditorUi.js
index 242c6ed8..8b2457cd 100644
--- a/src/main/webapp/js/grapheditor/EditorUi.js
+++ b/src/main/webapp/js/grapheditor/EditorUi.js
@@ -4680,7 +4680,7 @@ EditorUi.prototype.createStatusContainer = function()
*/
EditorUi.prototype.setStatusText = function(value)
{
- this.statusContainer.innerHTML = value;
+ this.statusContainer.innerHTML = Graph.sanitizeHtml(value);
// Wraps simple status messages in a div for styling
if (this.statusContainer.getElementsByTagName('div').length == 0 &&
@@ -4736,7 +4736,7 @@ EditorUi.prototype.createStatusDiv = function(value)
{
var div = document.createElement('div');
div.setAttribute('title', value);
- div.innerHTML = value;
+ div.innerHTML = Graph.sanitizeHtml(value);
return div;
};
@@ -5235,7 +5235,7 @@ EditorUi.prototype.parseHtmlData = function(data)
var hasMeta = data.substring(0, 6) == '<meta ';
elt = document.createElement('div');
elt.innerHTML = ((hasMeta) ? '<meta charset="utf-8">' : '') +
- this.editor.graph.sanitizeHtml(data);
+ Graph.sanitizeHtml(data);
asHtml = true;
// Workaround for innerText not ignoring style elements in Chrome