mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 04:03:09 -07:00
Escape html chars
This commit is contained in:
parent
7926ae88cd
commit
4fb17af9ce
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
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