mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-20 21:43:40 -07:00
Escape html chars
This commit is contained in:
parent
a7387f1578
commit
7926ae88cd
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue