I am setting up a transactional message template that is triggered off of a rtEvent. I would like to populate the template with an html block but in order to pass html as an XML value I have to base64 encode it. How to I decode it in my template?
I've tried sending the html both of the following ways:
<ctx>
<emailcontent>
htmlbody=<![CDATA[<html><head></head><body>Your HTML's body</body></html>]]></emailcontent>
</ctx>
<ctx>
<emailcontent htmlbody="PGh0bWw+PGhlYWQ+PC9oZWFkPjxib2R5PllvdXIgSFRNTCdzIGJvZHk8L2JvZHk+PC9odG1sPg=="/>
</ctx>
This is how Im displaying the html in the email template
<%= rtEvent.ctx.emailcontent.@htmlbody %>