Skip to content

Commit

Permalink
feat: add empty space entity to be removed on removeHtmlTags pipe (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoBianco authored Oct 24, 2024
1 parent 9842ec9 commit dc33abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@squidit/ngx-css",
"version": "1.3.59",
"version": "1.3.60",
"peerDependencies": {
"@angular/common": ">=15.0.0",
"@angular/cdk": ">=15.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/pipes/remove-html-tags/remove-html-tags.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class RemoveHtmlTagsPipe implements PipeTransform {
if (value == null) {
return ''
}
const regex = /<\/?[^>]+(>|$)/g
const regex = /<\/?[^>]+(>|$)|&nbsp;/g
return value.replace(regex, '')
}
}

0 comments on commit dc33abe

Please sign in to comment.