Appends a new paragraph with the given text to the specified parent and returns the paragraph.

  • Parameters

    • parent: Element

      DOM node to append the text node to.

    • text: string

      String representing the text for the new paragraph.

    Returns HTMLParagraphElement