Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ampersand (& )decodes to entitiy reference in user macro

Barbara Baur
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2021

Hello,

We are currently upgrading from 7.1.2 to 7.12.5. We have a simple user macro that applies some special text formatting to the entered text.

With Confluence 7.1.2, special characters needed to be given by the corresponding entity reference, e.g. a text like '<Data Category>' was entered as '&lt;Data category&gt;' to be rendered properly as '<Data Category>', otherwise this was interpreted as a (useless) html tag and nothing was output.

Now with 7.12.5 the same text is displayed as is, e.g. '&lt;Data category&gt;'.

When looking at the source code of the Confluence page, the & was escaped to '&amp;' e.g.

'&amp;lt;Data category&amp;gt;'

This concerns many instances of this macro in several spaces. Is there anything we can do to resolve this?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events