src/wcmf/lib/util/DOMUtils.php
public static function setInnerHtml(\DOMElement $element, $html) {
    $fragment = $element->ownerDocument->createDocumentFragment();
    $fragment->appendXML($html);
    $element->appendChild($fragment);
  }
public static function setInnerHtml(\DOMElement $element, $html) {
    $fragment = $element->ownerDocument->createDocumentFragment();
    $fragment->appendXML($html);
    $element->appendChild($fragment);
  }
public static function setInnerHtml ( \ DOMElement $ element , $ html ) { $ fragment = $ element -> ownerDocument -> createDocumentFragment ( ) ; $ fragment -> appendXML ( $ html ) ; $ element -> appendChild ( $ fragment ) ; }
Set the inner html string of an element
@param \DOMElement $element
@param $html
Set the inner html string of an element