Skip to content

Example: Incoming text/html

Let's say you want to save the following text/html content in a richtext field:

<b>this is the body text</b>

You use that as the content in the following Rich Text JSON:

{
  "type": "text/html",
  "encoding": "PLAIN",
  "content": "<b>this is the body text</b>"
}

This saves a text/html MIME:

MIME-Version: 1.0
Content-Type: text/html

<b>this is the body text</b>