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:
A Very Big Sum | Javascript | hackerrank07-05-2020 A Very Big Sum Javascript hackerrank |
Convert and download html to pdf without saving file28-10-2018 node js convert html to pdf pdf download pdf without saving |
Use java script file client side and server side at a time in node js30-07-2017 node js include call javascript |
Navigate to another page using java script06-03-2017 javascript redirection navigation |
Email validation regular expression in javascript22-02-2017 email validation regex |