# Convert BBcode to HTML?

**URL:** <https://forum.bubble.io/t/convert-bbcode-to-html/48405>\
**Category:** Need help\
**Created:** [February 1, 2019, 4:49pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405 "2019-02-01T16:49:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![cognilytica](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@cognilytica](https://forum.bubble.io/u/cognilytica)\
**Post date:** [February 1, 2019, 4:49pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/1 "2019-02-01T16:49:11Z")

</div>

Is there any way to convert bbcode from the Rich Text editor into HTML for use in email sending and other usages?

---

<div class="post-metadata">

**Author:** ![antony](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/antony/32/19446_2.png) [@antony](https://forum.bubble.io/u/antony)\
**Post date:** [February 7, 2019, 10:28pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/2 "2019-02-07T22:28:56Z")

</div>

Second that. I’m looking for the same thing! 🙂

---

<div class="post-metadata">

**Author:** ![cognilytica](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@cognilytica](https://forum.bubble.io/u/cognilytica)\
**Post date:** [February 12, 2019, 4:04pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/3 "2019-02-12T16:04:45Z")

</div>

I still don’t have any answers. I’m puzzled why Bubble uses bbcode instead of HTML which has more applicability. Any richtext entered into a Bubble field is not usable for email.

---

<div class="post-metadata">

**Author:** ![anon65040322](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@anon65040322](https://forum.bubble.io/u/anon65040322)\
**Post date:** [February 12, 2019, 4:25pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/4 "2019-02-12T16:25:23Z")

</div>

could you use :find&replace ?

---

<div class="post-metadata">

**Author:** ![Kfawcett](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kfawcett/32/38097_2.png) [@Kfawcett](https://forum.bubble.io/u/Kfawcett)\
**Post date:** [February 12, 2019, 5:17pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/6 "2019-02-12T17:17:55Z")

</div>

Maybe this will help? [https://gist.github.com/niccolomineo/0bc0f45e86520fd508609a49e91a6251](https://gist.github.com/niccolomineo/0bc0f45e86520fd508609a49e91a6251)

---

<div class="post-metadata">

**Author:** ![cognilytica](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@cognilytica](https://forum.bubble.io/u/cognilytica)\
**Post date:** [February 12, 2019, 6:03pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/7 "2019-02-12T18:03:04Z")

</div>

Looks cool. How would this be used in a Bubble app? Specifically if I want to leverage this for multiple workflows. Would be great to have this as an API or plugin

---

<div class="post-metadata">

**Author:** ![peter8](https://avatars.discourse-cdn.com/v4/letter/p/ee7513/32.png) [@peter8](https://forum.bubble.io/u/peter8)\
**Post date:** [February 12, 2019, 9:44pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/8 "2019-02-12T21:44:17Z")

</div>

Try the bkd text editor. I just played around with it yesterday and managed to send nicely formed html email via the postmark api

---

<div class="post-metadata">

**Author:** ![antony](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/antony/32/19446_2.png) [@antony](https://forum.bubble.io/u/antony)\
**Post date:** [February 13, 2019, 9:29am UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/9 "2019-02-13T09:29:30Z")

</div>

But does the bdk editor save the text locally in bbcode? Because I need to concatenate the “rich text” with plain text and you can only do that when the rich text is in bbcode format.

---

<div class="post-metadata">

**Author:** ![Kfawcett](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kfawcett/32/38097_2.png) [@Kfawcett](https://forum.bubble.io/u/Kfawcett)\
**Post date:** [February 13, 2019, 1:07pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/10 "2019-02-13T13:07:26Z")

</div>

If you use the bdk editor, you don’t need to worry about BBcode. The editor has a few different formats (HTML, Rich Content, Text) that you can set it up to use. It will store the data in the Bubble database in that format (ex. HTML), so if you’re sending as an email then it will already be in HTML. If you want to display that data across your app, then you can use the HTML element or in a bdk editor in read-only mode.

Just an FYI, “[Rich content](https://quilljs.com/guides/designing-the-delta-format/)” in bdk editor is actually a JSON format that is able to understand changes to the data in the editor. So it’s able to do things like auto-save and versioning.

Take a look at #11 (BDK editor) on this page for more details. [https://www.notion.so/Bubble-Developer-Kit-3eb057d9d81d4176b1be678856c80faf](https://www.notion.so/Bubble-Developer-Kit-3eb057d9d81d4176b1be678856c80faf)

---

<div class="post-metadata">

**Author:** ![cognilytica](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@cognilytica](https://forum.bubble.io/u/cognilytica)\
**Post date:** [February 13, 2019, 1:47pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/11 "2019-02-13T13:47:56Z")

</div>

Looks good! Not sure I’m interested in paying an additional monthly fee for just that feature, however. But I’ll look into it. Wish there was a way to apply a simple javascript transformation to blocks of data in a simple way. Not just for this use case but for others as well.

---

<div class="post-metadata">

**Author:** ![antony](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/antony/32/19446_2.png) [@antony](https://forum.bubble.io/u/antony)\
**Post date:** [February 14, 2019, 4:39pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/12 "2019-02-14T16:39:24Z")

</div>

Hi there @cognilytica… I have the same problem… I will probably create a bbcode to HTML plugin over the next month or so. I’ve been looking at some existing javascript libraries to kick start it. I’ll drop you a line on here when it’s done! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [April 12, 2019, 4:49pm UTC](https://forum.bubble.io/t/convert-bbcode-to-html/48405/13 "2019-04-12T16:49:13Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
