Skip to content

Commit cc094d8

Browse files
authored
remove \s+ from the html removal
1 parent 08c347e commit cc094d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/lib/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function getTrimmedTextWithSpaces(elem: Object | Object[]): string {
3232
}
3333

3434
export function removeHtmlWithRegex(str: string): string {
35-
return str.replace(/<[^>]*>|\s+/g, ' ')
35+
return str.replace(/<[^>]*>/g, ' ')
3636
}
3737

3838
export function fastGetTrimmedText(str: string): string {

0 commit comments

Comments
 (0)