Travis build: 1439
This commit is contained in:
74
README.md
74
README.md
@ -353,10 +353,10 @@ average(1, 2, 3);
|
|||||||
* [`mask`](#mask)
|
* [`mask`](#mask)
|
||||||
* [`palindrome`](#palindrome)
|
* [`palindrome`](#palindrome)
|
||||||
* [`pluralize`](#pluralize)
|
* [`pluralize`](#pluralize)
|
||||||
|
* [`removeNonASCII`](#removenonascii)
|
||||||
* [`reverseString`](#reversestring)
|
* [`reverseString`](#reversestring)
|
||||||
* [`sortCharactersInString`](#sortcharactersinstring)
|
* [`sortCharactersInString`](#sortcharactersinstring)
|
||||||
* [`splitLines`](#splitlines)
|
* [`splitLines`](#splitlines)
|
||||||
* [`stripHTMLtags`](#striphtmltags)
|
|
||||||
* [`toCamelCase`](#tocamelcase)
|
* [`toCamelCase`](#tocamelcase)
|
||||||
* [`toKebabCase`](#tokebabcase)
|
* [`toKebabCase`](#tokebabcase)
|
||||||
* [`toSnakeCase`](#tosnakecase)
|
* [`toSnakeCase`](#tosnakecase)
|
||||||
@ -421,6 +421,15 @@ average(1, 2, 3);
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
### _Uncategorized_
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>View contents</summary>
|
||||||
|
|
||||||
|
* [`stripHTMLtags`](#striphtmltags)
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
---
|
---
|
||||||
## 🔌 Adapter
|
## 🔌 Adapter
|
||||||
|
|
||||||
@ -6238,6 +6247,28 @@ autoPluralize(2, 'person'); // 'people'
|
|||||||
<br>[⬆ Back to top](#table-of-contents)
|
<br>[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
|
|
||||||
|
### removeNonASCII
|
||||||
|
|
||||||
|
Removes non-printable ASCII characters.
|
||||||
|
|
||||||
|
Use a regular expression to remove non-printable ASCII characters.
|
||||||
|
|
||||||
|
```js
|
||||||
|
const removeNonASCII = str => str.replace(/[^\x20-\x7E]/g, '');
|
||||||
|
```
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Examples</summary>
|
||||||
|
|
||||||
|
```js
|
||||||
|
removeNonASCII('äÄçÇéÉêlorem-ipsumöÖÐþúÚ'); // 'lorem-ipsum'
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<br>[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
|
|
||||||
### reverseString
|
### reverseString
|
||||||
|
|
||||||
Reverses a string.
|
Reverses a string.
|
||||||
@ -6305,28 +6336,6 @@ splitLines('This\nis a\nmultiline\nstring.\n'); // ['This', 'is a', 'multiline',
|
|||||||
<br>[⬆ Back to top](#table-of-contents)
|
<br>[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
|
|
||||||
### stripHTMLTags
|
|
||||||
|
|
||||||
Removes HTML/XML tags from string.
|
|
||||||
|
|
||||||
Use a regular expression to remove HTML/XML tags from a string.
|
|
||||||
|
|
||||||
```js
|
|
||||||
const stripHTMLTags = str => str.replace(/<[^>]*>/g, '');
|
|
||||||
```
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Examples</summary>
|
|
||||||
|
|
||||||
```js
|
|
||||||
stripHTMLTags('<p><em>lorem</em> <strong>ipsum</strong></p>'); // 'lorem ipsum'
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<br>[⬆ Back to top](#table-of-contents)
|
|
||||||
|
|
||||||
|
|
||||||
### toCamelCase
|
### toCamelCase
|
||||||
|
|
||||||
Converts a string to camelcase.
|
Converts a string to camelcase.
|
||||||
@ -7585,6 +7594,25 @@ yesNo('Foo', true); // true
|
|||||||
|
|
||||||
<br>[⬆ Back to top](#table-of-contents)
|
<br>[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
|
---
|
||||||
|
## _Uncategorized_
|
||||||
|
|
||||||
|
### stripHTMLTags
|
||||||
|
|
||||||
|
Removes HTML/XML tags from string.
|
||||||
|
|
||||||
|
Use a regular expression to remove HTML/XML tags from a string.
|
||||||
|
|
||||||
|
```js
|
||||||
|
const stripHTMLTags = str => str.replace(/<[^>]*>/g, '');
|
||||||
|
```
|
||||||
|
|
||||||
|
```js
|
||||||
|
stripHTMLTags('<p><em>lorem</em> <strong>ipsum</strong></p>'); // 'lorem ipsum'
|
||||||
|
```
|
||||||
|
|
||||||
|
<br>[⬆ back to top](#table-of-contents)
|
||||||
|
|
||||||
|
|
||||||
## Collaborators
|
## Collaborators
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -214,7 +214,7 @@ sortedLastIndexBy:array,math,function
|
|||||||
splitLines:string
|
splitLines:string
|
||||||
spreadOver:adapter
|
spreadOver:adapter
|
||||||
standardDeviation:math,array
|
standardDeviation:math,array
|
||||||
stripHTMLTags:string,utility,regexp
|
stripHTMLtags:uncategorized
|
||||||
sum:math,array
|
sum:math,array
|
||||||
sumBy:math,array,function
|
sumBy:math,array,function
|
||||||
sumPower:math
|
sumPower:math
|
||||||
|
|||||||
Reference in New Issue
Block a user