Jésus Husbands
 · Co Founder at Melior

How can I display richtext that I've received from an API

Database & APIs
Resolved

Hey everyone,

I'm using an API to get a job description. The job description is a richtext element. When I receive it through the API it comes with all the rich text symbols (\n, [b], [i], [u] etc). I'm trying to make the text display in the same way it would on the web. Is there anyways that I can do this in FF?

What have you tried so far?

I've tried:

  1. Just placing it in a rich text widget but this doesn't work since it shows all the rich text symbols without displaying them and just populates everything as text.

  2. I've tried creating a custom function to convert the richtext element to HTML and then displaying it through a rich text widget but got the same result.

Did you check FlutterFlow's Documentation for this topic?
Yes
5
4 replies