We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c347e commit cc094d8Copy full SHA for cc094d8
source/lib/html.js
@@ -32,7 +32,7 @@ export function getTrimmedTextWithSpaces(elem: Object | Object[]): string {
32
}
33
34
export function removeHtmlWithRegex(str: string): string {
35
- return str.replace(/<[^>]*>|\s+/g, ' ')
+ return str.replace(/<[^>]*>/g, ' ')
36
37
38
export function fastGetTrimmedText(str: string): string {
0 commit comments