diff --git a/ConfJuvApp/www/html/_proposal.html b/ConfJuvApp/www/html/_proposal.html index a0d6261..79c8bc5 100644 --- a/ConfJuvApp/www/html/_proposal.html +++ b/ConfJuvApp/www/html/_proposal.html @@ -23,7 +23,7 @@
-
+
{{proposal.body | htmlToPlainText}}
diff --git a/ConfJuvApp/www/js/filters.js b/ConfJuvApp/www/js/filters.js index e934923..7a74908 100644 --- a/ConfJuvApp/www/js/filters.js +++ b/ConfJuvApp/www/js/filters.js @@ -1,16 +1,20 @@ angular.module('confjuvapp.filters', []). - filter('htmlToPlainText', function() { - return function(text) { - return String(text).replace(/<[^>]+>/gm, ''); - }; - } -).filter('categoryType', function() { - return function(categories, type) { - for (var i = 0; i < categories.length; i++) { - if(categories[i].type.toLowerCase() == type){ - return categories[i].name; - } +filter('htmlToPlainText', function() { + return function(text) { + return String(text).replace(/<[^>]+>/gm, ''); + }; +}). +filter('categoryType', function() { + return function(categories, type) { + for (var i = 0; i < categories.length; i++) { + if (categories[i].type.toLowerCase() == type) { + return categories[i].name; } - }; - } -); + } + }; +}). +filter('tagFilter', function() { + return function(text) { + return String(text).replace(/#/gm, ''); + }; +}); -- libgit2 0.21.2