4 Replies Latest reply on Feb 15, 2017 11:20 AM by hcdocs

    Using the REST API to get the HTML without the result of render macros?

    mcollinge

      I'm manipulating some content using the REST API. What I'm finding is that if I read in some content via the REST API it has the result of render macros in the HTML.. not the raw render macro reference.

       

      An example is having a Table of Contents (TOC) in a document. The raw HTML looks like;

       

      <p><img class="jive_macro jive_macro_toc" 
      src="/community/8.0.2.7f31811/images/tiny_mce3/plugins/jiveemoticons/images/spacer.gif" 
      jivemacro="toc" data-renderedposition="92_8_61_72" /></p>
      

       

      But when I retrieve it using the REST API I get the HTML that the render macro produces;

       

      /api/core/v3/contents?filter=entityDescriptor(102,1471)

       

      <div class=\"toc\"><ul><li><ul><li>
      <a class=\"jive-link-anchor-small\" href=\"#jive_content_id_My_heading\">My heading.</a>
      </li>
      </ul></li></ul></div>
      

       

      Is there a way to switch this behaviour off?