How to make rich text interpret HTML

I am creating a plugin for an API. I successfully retrieve the information and automatically insert it into a topic. Markdown is not an issue, it works perfectly, but if I switch to rich text, I see the HTML block. Is there a way to decode the HTML, or does it need to be converted into another format?

Thank you

While a small subset of HTML is accepted, you should send markdown instead of possible.