Hello everyone!
I recently reverse-engineered the Bubble’s Rich Text Input to figure out how it handles BBCode → HTML conversion, made some improvements, and wrote a JS snippet for the conversion. I want to share it with you in case it is useful for anyone:
- JavaScript snippet for BBCode to HTML conversion
The converter handles all the usual formatting - bold, italic, colors, links, images, headings, lists, etc. (Font families don’t carry over since different editors use different fonts, but everything else does.)
Btw. I originally built it for our TinyMCE Rich Text Editor plugin which has this conversion built-in. I also created this BBCode→HTML demo that you can be also useful for you to paste BBCode and output HTML.
Happy building!