This is a good question! That syntax is used by Target for dynamic data in offers which is why it's getting removed/replaced. I couldn't find any info on how to "escape" the format for a literal print. However, I was able to hack a solution that worked for me you might try.
Create a profile script that returns the string you want returned like:
Use the dynamic data sytax in your HTML offer to replace content with the value of your new profile script (I named mine "static").
HTML in offer example:
let myText = 'The Text!';
When I run this my response from Target returns this:
And I see "The Text!" printed to the console. There may still be a better way to do this. But maybe this will help you out until you find the better way.