# Converting HTML to BBCode

**URL:** <https://forum.bubble.io/t/converting-html-to-bbcode/214186>\
**Category:** Questions\
**Created:** [July 5, 2022, 7:21pm UTC](https://forum.bubble.io/t/converting-html-to-bbcode/214186 "2022-07-05T19:21:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashi](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@shashi](https://forum.bubble.io/u/shashi)\
**Post date:** [July 5, 2022, 7:21pm UTC](https://forum.bubble.io/t/converting-html-to-bbcode/214186/1 "2022-07-05T19:21:53Z")

</div>

I have an app I built for a client several years ago in Microsoft Power Apps. For several reasons, we’re looking to rebuild the app in another tool, and I’d like to use Bubble.

In the app, I have a database with several thousands of rows containing formatted text stored in HTML. In order to bring this over into the bubble world, I’d likely have to convert all that formatted text into bbcode.

I see there are a lot of plugins to convert bbcode to html, but nothing that does the reverse. Any thoughts on how I could accomplish this programmatically?

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 5, 2022, 9:50pm UTC](https://forum.bubble.io/t/converting-html-to-bbcode/214186/2 "2022-07-05T21:50:45Z")

</div>

Why don’t you keep HTML?

---

<div class="post-metadata">

**Author:** ![ZeroqodeSupport](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/zeroqodesupport/32/88962_2.png) [@ZeroqodeSupport](https://forum.bubble.io/u/ZeroqodeSupport)\
**Post date:** [July 6, 2022, 9:34am UTC](https://forum.bubble.io/t/converting-html-to-bbcode/214186/3 "2022-07-06T09:34:05Z")

</div>

Hey @shashi

Our [Air BBcode to HTML converter | Plugin for Bubble by Zeroqode](https://zeroqode.com/plugin/air-bbcode-to-html-converter-1639147591602x550702826037835500) does the reverse (both BB to HTML and HTML to BB) 🙂

Check out the demo page:  
[https://zeroqode-demo-23.bubbleapps.io/bbcode\_to\_html\_converter](https://zeroqode-demo-23.bubbleapps.io/bbcode_to_html_converter)

Regards,  
Zeroqode Support Team

---

<div class="post-metadata">

**Author:** ![shashi](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@shashi](https://forum.bubble.io/u/shashi)\
**Post date:** [July 6, 2022, 6:56pm UTC](https://forum.bubble.io/t/converting-html-to-bbcode/214186/4 "2022-07-06T18:56:02Z")

</div>

Thanks! I’ll check it out!.

---

<div class="post-metadata">

**Author:** ![shashi](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@shashi](https://forum.bubble.io/u/shashi)\
**Post date:** [July 6, 2022, 6:57pm UTC](https://forum.bubble.io/t/converting-html-to-bbcode/214186/5 "2022-07-06T18:57:12Z")

</div>

Admins need to be able to edit the text via a wysiwyg editor, and so it’s easier for that and other reasons where having it in bbcode would make certain things possible/easier.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 7, 2022, 3:06pm UTC](https://forum.bubble.io/t/converting-html-to-bbcode/214186/6 "2022-07-07T15:06:56Z")

</div>

BBCode are more limited. A lot of WYSIWYG editor work with HTML. And after for display, you can use HTML element. You can find some JS script to convert HTML to BBCode. You could probably create a plugin and run this script.
