Function
textToElement
The markup to parse.
The parsed element, or undefined if the string held no element.
undefined
Parse a string of HTML into a live element. Only the first top-level element of the string is returned, so wrap multiple siblings in a container if you need all of them.
textToElement