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

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -