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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -