common.js: add stripHTML filter
This commit is contained in:
parent
c8cbbcb84d
commit
5b53fbda0b
2 changed files with 11 additions and 1 deletions
|
@ -36,6 +36,16 @@ angular.module("FICApp")
|
|||
}]);
|
||||
|
||||
angular.module("FICApp")
|
||||
.filter("stripHTML", function() {
|
||||
return function(input) {
|
||||
if (!input)
|
||||
return input;
|
||||
return input.replace(
|
||||
/(<([^>]+)>)/ig,
|
||||
""
|
||||
);
|
||||
}
|
||||
})
|
||||
.filter("capitalize", function() {
|
||||
return function(input) {
|
||||
return input.capitalize();
|
||||
|
|
Reference in a new issue