@unikue/ts-lang-utils
    Preparing search index...

    Function escapeHtml

    • Returns the escaped html string of the given text

      Parameters

      • Optionaltext: string | null

        The source string to inspect

      Returns string | null | undefined

      the escaped html string of the given text

      David Hsing

      escapeHtml('<div>foobar<div>');    // '&lt;div&gt;foobar&lt;div&gt;'