Function setText

  • Sets inner text softly, i.e. without changing anything if the inner text already matches the given text.

    Parameters

    • el: HTMLElement
    • text: string

    Returns void