I received some amazing help from others, concerning finding and replacing text with jquery.
The code below will find the word: \"Subject:\" and replace it with \"Na
The function below works perfectly for me:
function replaceText(selector, text, newText, flags) {
var matcher = new RegExp(text, flags);
$(selector).each(function () {
var $this = $(this);
if (!$this.children().length)
$this.text($this.text().replace(matcher, newText));
});
}
Here's a usage example:
function replaceAllText() {
replaceText('*', 'Subject:', 'Name:', 'igm');
}
$(document).ready(replaceAllText);
$('html').ajaxStop(replaceAllText);