Escape html chars

This commit is contained in:
Kenox 2022-11-03 19:22:42 +01:00
commit 7926ae88cd
2 changed files with 3 additions and 3 deletions

View file

@ -25,10 +25,10 @@ haste_document.prototype.load = function(key, callback, lang) {
success: function(res) {
_this.locked = true;
_this.key = key;
_this.data = _this.htmlEscape(res.data);
_this.data = res.data;
callback({
value: _this.data,
value: _this.htmlEscape(_this.data),
key: key,
language: lang,
lineCount: _this.data.split('\n').length

File diff suppressed because one or more lines are too long