Hi @kaio61751785 ,
I came across another solution to this issue from another colleague (credit to Moritz K): his I believe is more elegant then my earlier option, and more scalable. The trick is to wrap the syntax around itself. When Target detects the nested instance of the syntax, it will replace the syntax with a new value (from the token name supplied) OR no value if none is found. Target only reads through one time for token replacement so the resulting syntax remains.
If I want the code from Target to have this literal output:
console.log('${myText}');
Then I can enter this as my offer content:
console.log('$${false}{myText}');
Then Target will detect the "${false}" as a token and try to replace it. Since nothing with "false" exists in the Target profile it will remove that token and replace it with nothing. The result will be my end goal of:
console.log('${myText}');
I think that's a bit nicer of a solution.