Rest API as HTML

Hi Ken,

Welcome to the community :grinning:

You can easily convert the JSON output using the Prismic DOM. It’s our JS library for doing exactly that.

Here’s an example of how to use it in pure JS:

var PrismicDOM = require('prismic-dom');
var titleHtml = PrismicDOM.RichText.asHtml(document.data.title, linkResolver)

You can see more examples here, we also have examples in many different frameworks:
https://prismic.io/docs/javascript/templating/rich-text#1_0-output-as-html

Let me know if you have any other questions.

Thanks.