Escape html chars

This commit is contained in:
Kenox 2022-11-03 19:24:59 +01:00
commit 4fb17af9ce
2 changed files with 2 additions and 2 deletions

View file

@ -264,7 +264,7 @@ haste.prototype.lockDocument = function() {
_this.showMessage(err.message, 'error'); _this.showMessage(err.message, 'error');
} }
else if (ret) { else if (ret) {
_this.$code.html(ret.value); _this.$code.html(_this.htmlEscape(ret.value));
_this.setTitle(ret.key); _this.setTitle(ret.key);
var file = '/' + ret.key; var file = '/' + ret.key;
window.history.pushState(null, _this.appName + '-' + ret.key, file); window.history.pushState(null, _this.appName + '-' + ret.key, file);

File diff suppressed because one or more lines are too long