For compatibility with Webstudio, ideally HTML output is provided directly from the API, for example see hygraph https://hygraph.com/docs/api-reference/content-api/rich-text-field#rich-text-data