function renderHtml(element, templateResult) {
  if (templateResult && templateResult.renderElement) {
    templateResult.renderElement(asserts.assert(element));
    return;
  }
  safe.unsafeSetInnerHtmlDoNotUseOrElse(
      asserts.assert(element), ensureTemplateOutputHtml(templateResult));
}
Sets the processed template as the innerHTML of an element. It is recommended
to use this helper function instead of directly setting innerHTML in your
hand-written code, so that it will be easier to audit the code for cross-site
scripting vulnerabilities.
@param {?Element|?ShadowRoot} element The element whose content we are
    rendering into.
@param {!SanitizedContent} templateResult The processed template of kind HTML
    or TEXT (which will be escaped).
@template ARG_TYPES