createElement = function createElement(tagName, opt) {
    var el = document.createElement(tagName);
    if (opt.className) el.className = opt.className;

    if (opt.innerHTML && opt.dompurify) {
      el.innerHTML = opt.dompurify.sanitize(opt.innerHTML);
    }

    for (var key in opt.style) {
      el.style[key] = opt.style[key];
    }

    return el;
  }
Create an HTML element with optional className, innerHTML, and style.

@private
@ignore