How to render HTMl content in lightning?

We are getting an Html content from api response to display in privacy policy page.
Is there any way in lightning to render an Html content?

Hi @Anjana . While discouraged, you could simply create new DOM elements through the standard DOM APIs. It’s still Javascript with HTML at the end of the day. But since you’re working with stuff outside Lightning’s lifecycle, expect that some things might not work as you intend, depending of the device and environment.

Hi @eduardo.guzman
From the api response we are getting the format of text . It is not a static data.It might change later . Then how we will create it in lightning.