@newdash/newdash
Version:
javascript/typescript utility library
23 lines (22 loc) • 684 B
TypeScript
/**
* The inverse of `escape`this 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_](https://mths.be/he).
*
* @since 5.12.0
* @category String
* @param string The string to unescape.
* @returns string Returns the unescaped string.
* @see [[escape]], [[escapeRegExp]]
* @example
*
* ```js
* unescape('fred, barney, & pebbles')
* // => 'fred, barney, & pebbles'
* ```
*/
export declare function unescape(string: string): string;
export default unescape;