gradum-kit - v0.1.0
    Preparing search index...

    Function textToElement

    • Function

      textToElement

      Parameters

      • text: string

        The markup to parse.

      Returns Element

      The parsed element, or undefined if the string held no element.

      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.