AnsweredAssumed Answered

HTML Encoding

Question asked by Dragan Simonski on Sep 24, 2018
Latest reply on Sep 24, 2018 by Sanford Whiteman

Hi All,
I suppose not being he first one having this problem, if someone knows more about, it will be a great help.
For the needs of my customer, I have to implement a custom tracking for landing page visits and clicks to one link only.

 

The custom tracking should be made this way:

<button type="button" ="return window.adf&&adf.ClickTrack(this, {trackingId}, 'Name', {});">Click Here!</button>

 

The problem is that the double amersand in the  is converted to &amp;&amp; in the rendered page and the  event handler is not executed.

 

Any idea how to prevent the "&&" conversion to "&amp;&amp;"?

 

Thanks!

Outcomes