For example i have this text
"!?vake 7EnEebjP8jXf JFyd5hpIVa6B !?vake".
The starting and ending keyword is "!?vake" and i want to retrieve the encrypted content between the keywords,decrypt it and replace it.
The html code before replacing would be:
<span class="messageBody" data-ft="{"type":3}">!?vake 7EnEebjP8jXf JFyd5hpIVa6B
Fu63LH23dAiB !?vake</span>
and after decrypting :
<span class="messageBody" data-ft="{"type":3}">i am the decrypted text</span>
Replace should work in the whole html document without knowing the specific element the encrypted text is.