mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
WebUI: remove temporary element
This commit is contained in:
parent
0d334369f0
commit
af7c32d3aa
1 changed files with 3 additions and 1 deletions
|
@ -169,7 +169,9 @@ window.qBittorrent.Misc = (function() {
|
||||||
const escapeHtml = function(str) {
|
const escapeHtml = function(str) {
|
||||||
const div = document.createElement('div');
|
const div = document.createElement('div');
|
||||||
div.appendChild(document.createTextNode(str));
|
div.appendChild(document.createTextNode(str));
|
||||||
return div.innerHTML;
|
const escapedString = div.innerHTML;
|
||||||
|
div.remove();
|
||||||
|
return escapedString;
|
||||||
}
|
}
|
||||||
|
|
||||||
const safeTrim = function(value) {
|
const safeTrim = function(value) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue