Browse Source

WebUI: remove temporary element

adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
af7c32d3aa
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/webui/www/private/scripts/misc.js

4
src/webui/www/private/scripts/misc.js

@ -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…
Cancel
Save