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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

Codeblock Quality Defect - Character encoding issues

When creating a codeblock element and select "plain text," any special characters are encoded if they are wrapped in quotation marks. Most notably, the ampersand symbol (&) will be outputted as & even though "Plain Text" was selected.

1 answer

0 votes
Diego Atlassian Team Jan 02, 2020

Hello there, @Christopher Zack !

As I understand, special characters are escaped inside the Codeblock Macro even though you selected Plain Text as format.

With this behavior in mind, I tried to replicate the issue locally. I was ultimately unable to. Here is a screen capture of my attempt:



Since I was unable to replicate, I would like to take a deeper look into this behavior with you. Here are a few questions:

  1. Is this happening regardless of browser being used?
  2. Is this issue affecting all Codeblock macros you placed?
  3. Are you typing in the special characters or are you pasting them from somewhere else?


Looking forward to your reply, Christopher!

Hi Diego, here is an example to replicate this issue from. Doesn't seem to exclusively be ampersands inside quotation marks as something else is in play here but on publish (and preview), the ampersand becomes encoded:

<!-- Facebook Pixel Code -->

fbq('init', '123456789');
fbq('track', "PageView");</script>
<noscript><img height="1" width="1" style="display:none"
<!-- End Facebook Pixel Code -->
  1. I was able to replicate this issue in Chrome and Firefox.
  2. Plain Text, PHP, HTML/XML and a few others also encountered this issue.
  3. Copying and Pasting code from Notepad to strip formatting.

Here is an additional screenshot of the issue:

Hope this is helpful!

Diego Atlassian Team Jan 02, 2020

Hey @Christopher Zack , thanks for the quick feedback on the issue!

Interesting to see your results. Here is what I see in both Firefox and Chrome:



Here is my environment:

Anotação 2020-01-02 131950.jpg

Anotação 2020-01-02 131945.jpg

Anotação 2020-01-02 131938.jpg


Could you give more details on the Browser version and operating system? We need to better understand and try to replicate it.

If we are able to replicate the behavior, we can file a report to try and tackle the issue!

Let us hear from you.

Google Chrome:
Version 79.0.3945.88 (64-bit)

71.0 (64-bit)

Windows specifications

Edition: Windows 10 Enterprise

Version: 1809

OS build: 17763.379

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

415 views 23 8
Join discussion

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