1

I have set html data to my textview. When I select any word/characters from textview I want to bold that word and replace original html data with new one.

String html = "<p>hello this is android testing</p>";

Like this my html maybe have many html tags in it. If I want to make “android” word bold, how can I replace original html string with “android“.

I want <p>hello this is <strong>android</strong> testing</p> as result.