我希望通过向Responsys传递一个字符串来呈现html。
DynamicVariable.TEXT将是一个字符串,如下所示:
<button style="background-color: red; color: white; padding: 25px; border-radius: 4px; border: none; font-size: 18px; font-weight: bold">
Click Here
</button>我尝试过使用?html
<body bgcolor="white" style="margin: 0px; padding: 0px;">
${DynamicVariable.TEXT?html}
</body>我还尝试了将<#escape x作为x?html>:
<body bgcolor="white" style="margin: 0px; padding: 0px;">
<#escape x as x?html>
<#noescape>${DynamicVariable.TEXT}</#noescape>
</#escape>
</body>以及<#noescape>
<body bgcolor="white" style="margin: 0px; padding: 0px;">
<#noescape>${DynamicVariable.TEXT}</#noescape>
</body>但这些都不管用。任何帮助都将不胜感激!
发布于 2020-08-27 21:45:38
我找到了答案。
使用<#noescape>是正确的。但是,代码并未呈现,因为您需要利用保存在Responsys中的Content Library中的文档。
<body bgcolor="white" style="margin: 0px; padding: 0px;">
<#noescape>${DynamicVariable.TEXT}</#noescape>
</body>https://stackoverflow.com/questions/63508698
复制相似问题