Stop AEM from Converting Double Quotes | Community
Skip to main content
MktgCloudUser
Level 4
Oct 10, 2018 8:59 PM UTC

Stop AEM from Converting Double Quotes

Hello,

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"

        width="${logic.width}"

        height="${logic.height}"

        poster="${properties.posterimage}"

        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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

arunpatidar
New Participant
Oct 11, 2018 6:07 AM UTC

Hi,

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

Translate
Arun Patidar
MktgCloudUser
Level 4
Oct 11, 2018 1:58 AM UTC

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.

Translate
smacdonald2008
Level 10
Oct 11, 2018 1:35 AM UTC

Check the HTL spec for syntax examples -- htl-spec/SPECIFICATION.md at master · Adobe-Marketing-Cloud/htl-spec · GitHub

There is information here about supported quotes.

Translate