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

    Function escapeHtml

    • Returns the escaped html string of the given text

      Parameters

      • Optionaltext: null | string

        the source string to inspect

      Returns undefined | null | string

      the escaped html string of the given text

      David Hsing

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