JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <body>
        <span class="messageBody" data-ft="{&quot;type&quot;:3}">‎!?vake 7EnEebjP8jXf JFyd5hpIVa6B Fu63LH23dAiB !?vake</span>
        <div class="anything">Some other stuff that doesn't matter</div>
    </body>
</html>

JavaScript

var code = $("body").html().match(/!\?vake (.*?) !\?vake/);
var allcode = code[0];
var innercode = code[1];
var decryptcode = innercode + 'decrypted';
var newCode = $("body").html().replace(allcode, decryptcode);

$("body").html(newCode);
alert (decryptcode);