-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(item.details): add a filter to remove incorrect html tag / attribues
- Loading branch information
1 parent
d012eab
commit 354843a
Showing
3 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
8 changes: 2 additions & 6 deletions
8
src/main/resources/static/app/modules/common/filter/html2plainText.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
angular.module('ps.common.filter.html2plainText', []) | ||
.filter('htmlToPlaintext', function () { | ||
return function(text) { | ||
return String(text || "").replace(/<[^>]+>/gm, ''); | ||
}; | ||
} | ||
); | ||
.filter('htmlToPlaintext', () => (text) => String(text || "").replace(/<[^>]+>/gm, '')) | ||
.filter('cleanHtml', () => (text) => String(text || "").replace(' =""', '')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters