Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Ampersand decodes in "&" in code block

When I try to post html-code in a code block in wiki:

<a href="" target="_blank">sometext</a>

And I publish the code, i receive following:

Ampersand decoding.pngI've tried most of highlightning and style setting, but it's doesn't matter. Looks like it overrides highlightning and sets it as HTML/XML, because when I try another code block:

It looks fine in "Bash" or "Python" setting, but in HTML decoding it breaks all ampersands into "&amp;".

2 answers

1 accepted

2 votes
Answer accepted
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 14, 2018

Hi, Livadnyi Ivan,

Welcome to the Atlassian Community!

Thank you for reporting this behaviour. We could replicate it on our test instance, and the following bug report was opened on this issue:

CONFCLOUD-59800: Code Block macro: wrong HTML shown

We suggest you add yourself as a watcher to the bug to receive the updates. A comment with this Community post was added there for visibility. You can also find more information on our bug fixing policy here.

Best regards,

Hi, Thais Krischer,

Thank you for fast response and understanding the issue. I've subscribed this bug. Will wait for results.

End of 2020. This is still not fixed, instead a phrase "ampersands are converted into HTML entities in code blocks" is added into docs.

This is not a bug, this is a feature! Confluence (l)users must suffer! Is that your point, Atlassian?

David Duan
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!
May 15, 2023

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events