Im trying to find a solution to search for a text string \"Tony\" contained in the DOM and replace it with a text String \"Tiger\".
Anyone have any insight or ideas
You can use this to search all children of the body element and replace the text...
$('body').children().each(function(){$(this).text( $(this).text().replace('Tony','Tiger') )});
It uses jQuery. It also should only alter the textual content of elements and none of the HTML formatting...
You can also use this method which uses a RegExp and will get all nested elements:
$('body').html( $('body').html().replace(/Tony/gi,'tiger') );