I want to modify the DOM, which api should i use ?

I basically want to take a name of a text and bold it. example
original:
<p>Hello World</p>

modified:
<p>Hello <b>World</b></p>
Was this page helpful?