Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
7.4
-
None
Description
Put the following in a wiki page:
[[label>>one|-|two]] image:one|-|two.png
Edit in WYSIWYG mode and save without changing anything. You get:
[[Label>>one]] image:one
The problem seems to be that XHTMLMarkerResourceReferenceSerializer doesn't escape the '|-|' sequence in the entity reference. You get:
<!--startwikilink:false|-|doc|-|one|-|two--> <!--startimage:false|-|attach|-|one|-|two.png-->
Since '|-|' is not escaped I suppose "two" is considered a resource reference parameter. Would we break backwards compatibility if we start encoding the '|-|' now?