How to escape HTML tags in NextJS
I have Django backend and Nextjs frontend.
When I try to render
content = models.TextField()
from my Django backend to Nextjs frontend <p>{data.content}</p>
, I get following rendered:
<p>first first&nbs</p>
I use django_summernote as the editor. Django has | safe method, that escapes rendering HTML, but I don't know what to use for NextJS. Any help is appreciated