javascript - remove all <br> from a string -
i have string remove occurrences of <br>
i tried , did not work.
productname = productname.replace("<br>"," ");
however worked first <br>
productname = productname.replace("<br>"," ");
how work <br>
in string.
edit: string...
00-6189 start mech switch<br>00-6189 start mech switch<br>00-6189 start mech switch<br>
my apologies being little misleading <br>
should have been <br>
looks string encoded use
productname = productname.replace(/<br>/g," ");
note g
after regular expression means globally, match occurrences.
Comments
Post a Comment