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

0 votes
meee meee April 1, 2014

remove

<![CDATA[

so the escaped characters get parsed

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events