# Convert Rich Text to HTML in Automation

**URL:** <https://community.fibery.io/t/convert-rich-text-to-html-in-automation/8544>\
**Category:** Get Help\
**Created:** [April 2, 2025, 5:00am UTC](https://community.fibery.io/t/convert-rich-text-to-html-in-automation/8544 "2025-04-02T05:00:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![njyo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/njyo/32/923_2.png) [@njyo](https://community.fibery.io/u/njyo)\
**Post date:** [April 2, 2025, 5:00am UTC](https://community.fibery.io/t/convert-rich-text-to-html-in-automation/8544/1 "2025-04-02T05:00:21Z")

</div>

Hi,

We want to write our marketing emails in Fibery and then push them out through our branded email templates in Postmark (like Mailchimp) when pressing a button.

For this, we need to convert the Rich Text field into HTML, which then can be sent to the mailer together with the recipients when the user clicks Publish.

- Is there a way to make the Rich Text to HTML conversion via the Javascript Action?
- Or is there a way to read the Rich Text field as HTML?

Any pointers are much appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![derbenoo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/derbenoo/32/11540_2.png) [@derbenoo](https://community.fibery.io/u/derbenoo)\
**Post date:** [April 2, 2025, 6:25am UTC](https://community.fibery.io/t/convert-rich-text-to-html-in-automation/8544/2 "2025-04-02T06:25:12Z")

</div>

I know that you can query the content of a rich-text field as markdown via the API, maybe you can also specify the format “html”. I will have a look and report back. If it is not possible I can provide an API endpoint that offers the functionality „rich-text to html“ 🙂

Update: Looks like this is supported, the format “html” is included in the [Fibery API Docs](https://the.fibery.io/@public/User_Guide/Guide/Entity-API-264/anchor=Select-rich-text-Field--f9838a54-3d74-4f49-9f5d-9195731c7e89):

```auto
curl -X GET https://YOUR_ACCOUNT.fibery.io/api/documents/b33a25d1-99ba-11e9-8c59-09d0cb6f3aeb?format=html \
     -H 'Authorization: Token YOUR_TOKEN' \

```

The query parameter `format=html` should do the trick.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 29, 2025, 11:28am UTC](https://community.fibery.io/t/convert-rich-text-to-html-in-automation/8544/3 "2025-04-29T11:28:38Z")

</div>


