Fixed "Removing last Tag from photo not possible in Firefox #269"
This commit is contained in:
parent
275e653b1a
commit
a7192d1831
BIN
dist/main.js
vendored
BIN
dist/main.js
vendored
Binary file not shown.
@ -384,10 +384,13 @@ lychee.loadDropbox = function(callback) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lychee.removeHTML = function(html) {
|
lychee.removeHTML = function(html = '') {
|
||||||
|
|
||||||
|
if (html==='') return html;
|
||||||
|
|
||||||
var tmp = document.createElement('DIV');
|
var tmp = document.createElement('DIV');
|
||||||
tmp.innerHTML = html;
|
tmp.innerHTML = html;
|
||||||
|
|
||||||
return tmp.textContent || tmp.innerText;
|
return tmp.textContent || tmp.innerText;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user