AnsweredAssumed Answered

Rich Text Tokens add a 'ZERO WIDTH SPACE' char between P tags

Question asked by Robb Barrett Expert on Nov 4, 2015
Latest reply on Nov 9, 2015 by Sanford Whiteman

So figured this out by digging around quite a bit.


I'm using JS to select the appropriate token to display on a page. The potential tokens are all Rich Text, because I want HTML output.  The problem I'm getting is that Marketo forces a Zero Width Space character between </p> and <p> tags.  Look for yourself, it forces a line break. There's no way to disable this.  So when my Javascript tries to set a var as the token, it bombs out because of the zero width character.


If I take the HTML and plop it into a text token it keeps everything on one line and works fine, but my goal is to use Rich Text so that my marketers can easily create formatted content without needing HTML.


I don't know if this is a design flaw, a bug, or an unrequested feature. Whatever the case, it really makes no sense to force bad coding.  Anyone know of a workaround that would allow me to use the rich text token?