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

Quotation marks are appearing as &quot

E P Aug 30, 2012

We've set up a macro to pre-format the code block macro to cpp. The problem is in our macro,

printf("Drive OEM is %s",oem_name);
is appearing as
printf("Drive OEM is %s",oem_name);

The macro is:

## @param Title:title=Title|type=string|desc=Title
<ac:macro ac:name="code">
<ac:parameter ac:name="language">cpp</ac:parameter>
 <ac:macro ac:name="code"><ac:parameter ac:name="title">$!paramTitle</ac:parameter>
<ac:parameter ac:name="language">cpp</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>

And set to Escaped.

Confluence 4.1.5


1 answer

1 accepted

0 votes
Answer accepted
Matt Aug 31, 2012

What confluence did is the " signs has been escaped and converted to html entity. Try turning escape off. maybe macro from yor example has a parameter not to escape html chars.

E P Sep 02, 2012

Thank you Matt

Stefan Mueller Apr 30, 2019

have you solved it?
I properly run now in the same problem, see my comments in Can I create macros within an HTML macro?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

2,507 views 11 28
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