I need to put a JSON object into an attribute on an HTML element.
The HTML does not have to validate.
Answered by Quenti
What you can do is use cdata around your element/s like this
${aL.logMessage}
where mydata is a raw json string. Hope this helps you and others.