Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Stop AEM from Converting Double Quotes


Level 4


I have some HTL markup that requires single-quotes for one of the entries instead of double quotes and no matter what I do AEM converts the entries back to double quotes.  I've tried escaping, using <sly> calls, creating the full string in my logic.js - nothing works.  HTML code below:

<video id="${properties.playerid}" class="video-js"

        controls preload="auto"




        data-setup='{ "techOrder": ["youtube"] }'


Even if I hard code the data-setup entry like above, AEM replaces the data-setup=' with data-setup=".  I even tried creating the correct version of the string in my logic.js but I'm not aware of a print/echo function in HTL to just spit out ${logic.configdata} without the name/value pair.

How can I fix this?

3 Replies


Level 4

Right, I read that one before I posted.  The slashes don't work in this case, not sure why but the output is a broken name/value pair.


Community Advisor


Just want to check, if browser converts single quotes into double, but you can access your data attribute

Screenshot 2018-10-11 at 11.36.56 AM.png