Function escapeHtml

will replace critical html chars like &,<> and quote with entities & etc..

  • Parameters

    • text: string

      the text to escape

    Returns string