Options
All
  • Public
  • Public/Protected
  • All
Menu

Module unescape

Index

References

Functions String

References

Renames and re-exports unescape

String Functions

  • unescape(string: string): string
  • The inverse of escapethis method converts the HTML entities &, <, >, " and ' in string to their corresponding characters.

    Note: No other HTML entities are unescaped. To unescape additional HTML entities use a third-party library like he.

    since

    5.12.0

    see

    escape, escapeRegExp

    example
    unescape('fred, barney, & pebbles')
    // => 'fred, barney, & pebbles'

    Parameters

    • string: string

      The string to unescape.

    Returns string

    string Returns the unescaped string.