@endeavorance/quill
    Preparing search index...

    Function changeTag

    • Given an element, replace it with a different tag, adopting all attributes and child elements.

      Parameters

      • $target: Element

        The element to swap out

      • newTag: string

        The new HTML tagName to use

      Returns Element

      The newly swapped-in element