Hi I have a string as shown:
var testStr = 'Soft is a texture, I am soft spoken and I like softy ice cream';
Want to add 'span' tags around word 'soft': So result could be:
<span class='add-some-style'>Soft</span> is a texture, I am <span class='add-some-style'>soft</span> spoken and I like <span class='add-some-style'>soft</span>y ice cream
Tried string.replace, but with no success.