Look at https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace
<https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace>You could do something like: http://jsfiddle.net/m9NjP/ On Mon, Mar 28, 2011 at 1:34 PM, Steve Onnis <[email protected]> wrote: > can anyone suggest an easy way to replace some text on a page, well > actually i want to wrap text strings on a page with a span tag > > > > so for example > > > > <div>this is some text</div> > > > > Would become > > > > <div>this is <span>some</span> text</div> > > > > >
