How to use renderContent API with a page that uses "code block" macro?

Hi,

I am using the renderContent API just like the answer in this question https://answers.atlassian.com/questions/7150/how-can-i-show-the-content-of-a-confluence-page-within-an-external-application.

But the page I am try to render contains a "code block" macro and all I get from the API is a script as shown below

<script type="syntaxhighlighter" class="theme: Confluence; brush: java; gutter: false"><![CDATA[&lt;filter&gt;
        &lt;filter-name&gt;login_nego&lt;/filter-name&gt;
        &lt;filter-class&gt;fi.polarshift.confluence.lib.kauth.NegotiateLoginFilter&lt;/filter-class&gt;
    &lt;/filter&gt;]]></script>

How to properly render this?

Thanks,

1 answer

This widget could not be displayed.

remove

<![CDATA[

so the escaped characters get parsed

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 7 hours ago in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

11 views 0 0
View post

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you