mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
create a simple html escape method and escape the fields in the details tab
This commit is contained in:
parent
cc7aaa1ae0
commit
5c506121a4
2 changed files with 88 additions and 82 deletions
|
@ -81,6 +81,7 @@ Ext.deluge.details.DetailsTab = Ext.extend(Ext.Panel, {
|
|||
};
|
||||
|
||||
for (var field in this.fields) {
|
||||
//this.fields[field].innerHTML = Ext.escapeHTML(data[field]);
|
||||
this.fields[field].innerHTML = data[field];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,6 +49,11 @@ Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
|
|||
});
|
||||
|
||||
Ext.apply(Ext, {
|
||||
escapeHTML: function(text) {
|
||||
text = String(text);
|
||||
return text.replace('&', '&');
|
||||
},
|
||||
|
||||
isObjectEmpty: function(obj) {
|
||||
for(var i in obj) { return false; }
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue