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.
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:
- Is this happening regardless of browser being used?
- Is this issue affecting all Codeblock macros you placed?
- 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 -->
<noscript><img height="1" width="1" style="display:none"
<!-- End Facebook Pixel Code -->
Here is an additional screenshot of the issue: https://www.screencast.com/t/00S1uNlpYx
Hope this is helpful!
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:
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.
- 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...
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