UNPKG

web-push-notifications

Version:
20 lines (19 loc) 650 B
/** * 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 0.6.0 * @category String * @param {string} [string=''] The string to unescape. * @returns {string} Returns the unescaped string. * @see escape, escapeRegExp * @example * * unescape('fred, barney, & pebbles') * // => 'fred, barney, & pebbles' */ export declare function unescape(string: string): string;