mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 19:37:49 +00:00
Remove references to _.
This commit is contained in:
@@ -6,7 +6,7 @@ const reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g;
|
||||
const reHasEscapedHtml = RegExp(reEscapedHtml.source);
|
||||
|
||||
/**
|
||||
* The inverse of `_.escape`; this method converts the HTML entities
|
||||
* The inverse of `escape`; this method converts the HTML entities
|
||||
* `&`, `<`, `>`, `"`, and `'` in `string` to
|
||||
* their corresponding characters.
|
||||
*
|
||||
@@ -14,14 +14,13 @@ const reHasEscapedHtml = RegExp(reEscapedHtml.source);
|
||||
* HTML entities use a third-party library like [_he_](https://mths.be/he).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.6.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to unescape.
|
||||
* @returns {string} Returns the unescaped string.
|
||||
* @example
|
||||
*
|
||||
* _.unescape('fred, barney, & pebbles');
|
||||
* unescape('fred, barney, & pebbles');
|
||||
* // => 'fred, barney, & pebbles'
|
||||
*/
|
||||
function unescape(string) {
|
||||
|
||||
Reference in New Issue
Block a user