142
rated 0 times
[
145]
[
3]
/ answers: 1 / hits: 19713
/ 8 Years ago, tue, june 14, 2016, 12:00:00
Having trouble with very simple thing,
How to properly replace all < br>
and <br>
in the string with the empty space?
This is what I'm trying to use, but I'm receiving the same string.:
var finalStr = replaceAll(replaceAll(scope.ItemsList[i].itemDescr.substring(0, 27), <, ), br>, );
function replaceAll(str, find, replace) {
return str.replace(new RegExp(find, 'g'), replace);
}
More From » regex