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);
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…