Update BDFDB.max.js

This commit is contained in:
Mirco Wittrien 2019-08-29 10:01:13 +02:00
parent c2c837ee86
commit 2870ea9849
1 changed files with 1 additions and 1 deletions

View File

@ -2591,7 +2591,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
BDFDB.htmlToElement = function (html) {
if (!html || !html.trim()) return null;
let template = document.createElement('template');
template.innerHTML = html.replace(/\t|\n|\r/g, '');
template.innerHTML = html;
if (template.content.childElementCount == 1) return template.content.firstElementChild;
else {
var wrapper = document.createElement("span");