By using below filter we will replace the text in angular js
angular.module('surgi') .filter('ReplaceBreak', function() { return function(input) { input = input || ''; html = ''; var br_arr = input.split('<br>'); for(var i=0;i<br_arr.length;i++){ html += br_arr[i]+', '; } html = html.substring(0, html.length - 2); html = html.replace(/,\s*$/, ""); return html; }; });
You might also like:
Using slice remove last two characters from given string07-03-2017 slice remove |
Remove last two characters from given string06-03-2017 substring javascript remove |
Navigate to another page using java script06-03-2017 javascript redirection navigation |
Change datepicker display format06-03-2017 datepicker angular js |
Get random strings from given string In javascript21-02-2017 javascript random string |