Travis build: 1439

This commit is contained in:
30secondsofcode
2018-01-26 12:02:08 +00:00
parent c43422ff6d
commit 825c6045a2
3 changed files with 58 additions and 28 deletions

View File

@ -353,10 +353,10 @@ average(1, 2, 3);
* [`mask`](#mask)
* [`palindrome`](#palindrome)
* [`pluralize`](#pluralize)
* [`removeNonASCII`](#removenonascii)
* [`reverseString`](#reversestring)
* [`sortCharactersInString`](#sortcharactersinstring)
* [`splitLines`](#splitlines)
* [`stripHTMLtags`](#striphtmltags)
* [`toCamelCase`](#tocamelcase)
* [`toKebabCase`](#tokebabcase)
* [`toSnakeCase`](#tosnakecase)
@ -421,6 +421,15 @@ average(1, 2, 3);
</details>
### _Uncategorized_
<details>
<summary>View contents</summary>
* [`stripHTMLtags`](#striphtmltags)
</details>
---
## 🔌 Adapter
@ -6238,6 +6247,28 @@ autoPluralize(2, 'person'); // 'people'
<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
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)
### 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
Converts a string to camelcase.
@ -7585,6 +7594,25 @@ yesNo('Foo', true); // true
<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

File diff suppressed because one or more lines are too long

View File

@ -214,7 +214,7 @@ sortedLastIndexBy:array,math,function
splitLines:string
spreadOver:adapter
standardDeviation:math,array
stripHTMLTags:string,utility,regexp
stripHTMLtags:uncategorized
sum:math,array
sumBy:math,array,function
sumPower:math