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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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
4,558,944
Community Members
 
Community Events
184
Community Groups

Ampersand decodes in "&" in code block

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

<a href="https://experience.tripster.ru/?exp_partner=TESTPARTNER&utm_source=TESTPARTNER&utm_campaign=affiliates&utm_medium=link" 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:

https://experience.tripster.ru/?exp_partner=TESTPARTNER&utm_source=TESTPARTNER&utm_campaign=affiliates&utm_medium=link

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
thais
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,
Thais

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
TAGS
AUG Leaders

Atlassian Community Events