Contentful logo

Contentful Community

Iframes inside a Text field for NextJS

Hi :wave: I’m currently building my website with NextJS and I’m rendering all my blog content inside a Text field.

However, inside one of my posts, I have several iframe but they aren’t rendering. Instead, I’m just seeing them as strings (here’s one of the examples: How to build an accordion with JavaScript ).

So I’m currently battling with this but can’t find a proper response to my question.

Could someone help me?