Javascript replace between string tag <strong> -
i don't how replace this:
aaadddłłłłłaaałłłłĄąąąą<strong>
to
aaadddłłłłłaaałłłłĄąąąą <strong>
must add 1 space between string
pseudo kod:
replace('string<strong> ','string <strong>');
just this:
var p = your_string.indexof('<strong>'); if (p > 0 && p.charat(p-1) != ' ') { replaced = your_string.replace('<strong>',' <strong>'); }
Comments
Post a Comment