function createTextNodeFromTextContent(element) {
  return element.ownerDocument.createTextNode(element.textContent);
}
Convert an element to a text node.

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