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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 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?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

109 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you