-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
2 - Long term
-
3 - Complex
How to reproduce
- Edit a newsletter
- Insert a article with activated comments in "main" view thank to "last publication" insertion
- Save
- Preview the newsletter
Some caracters like ' contained in inserted JS are escaped.
For example
if (/(\?|&)last-comment=highlight(#|&)/.test(window.location.href)) { $j('#comments_9974759601760411 ul li:last').addClass('last-comment'); }
instead of
if (/(\?|&)last-comment=highlight(#|&)/.test(window.location.href)) { $j("#<xsl:value-of select="$uniqueId"/> ul li:last").addClass("last-comment"); }
It leads to several errors : Uncaught SyntaxError: Unexpected token &