maybe this is what you are looking for ...
document.body.getElements('div').each( function(elm){
elm.set(
'html',
elm.get('html').replace(/(searchterm)/g,"<span>$1</span>")
);
});On 28 Mrz., 13:34, "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>
