Expand Macros and Render Rich Text

Rich text in a content item can embed a digital image.

To render this rich text correctly in the content layout, rich text fields use contentClient.expandMacros() API. This resolves all the references to digital assets inside the rich text.

data["starter-blog-post_content"] =

If you use Mustache for rendering, {{{ }}} should be used to render a rich text value because rich text has HTML. When {{{ }}} is used around the variable, Mustache doesn't escape the HTML.