function createSanitizedElement(element) {
  // Start with an empty element of the same type to remove nested children
  // and non-localizable attributes defined by the translation.
  const clone = element.ownerDocument.createElement(element.localName);
  return shallowPopulateUsing(element, clone);
}
Sanitize an allowed element.

Text-level elements allowed in translations may only use safe attributes
and will have any nested markup stripped to text content.

@param   {Element} element - The element to be sanitized.
@returns {Element}
@private