Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/escape

Index

References

Functions

References

Renames and re-exports escape

Functions

  • escape(str?: string): string
  • Converts the characters "&", "<", ">", '"', and "'" in string to their corresponding HTML entities.

    example
     escape('fred, barney, & pebbles'); //=> 'fred, barney, &amp; pebbles'
    

    Parameters

    • str: string = ''

      The string to escape.

    Returns string

    Returns the escaped string.

Generated using TypeDoc