My string is like this.
$html_string = "This is a book and <img src='roh.png' /> and i am seeing roh is going to src.<br />how about you roho. <span class='jums'>this is jums</span> and he is a good <strong>body</strong>. He is so strong";
If i replace roh only 'seeing roh is' should be replace i mean it will not replace any TAG and attributes.
There can be any HTML tag. This is Ckeditor data. It should replace only HTML parsed data.