Travis build: 1445

This commit is contained in:
30secondsofcode
2018-01-26 12:21:20 +00:00
parent 87ad2a1e4c
commit 50fb3b1833
2 changed files with 27 additions and 32 deletions

View File

@ -358,6 +358,7 @@ average(1, 2, 3);
* [`reverseString`](#reversestring)
* [`sortCharactersInString`](#sortcharactersinstring)
* [`splitLines`](#splitlines)
* [`stripHTMLTags`](#striphtmltags)
* [`toCamelCase`](#tocamelcase)
* [`toKebabCase`](#tokebabcase)
* [`toSnakeCase`](#tosnakecase)
@ -422,15 +423,6 @@ average(1, 2, 3);
</details>
### _Uncategorized_
<details>
<summary>View contents</summary>
* [`stripHTMLTags`](#striphtmltags)
</details>
---
## 🔌 Adapter
@ -6372,6 +6364,28 @@ 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.
@ -7630,25 +7644,6 @@ 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