in
I have a document with the following structure:
This is some text.
Try this, sure you will get your result.
$("#notice p").text(function(i, text) { return text.replace("some", "My"); });