I am working on a React app. There is some dynamic content which contents HTML tags. When I am showing that content on the page, it\'s showing with raw HTML tag.
For say
You can use the 'dangerouslySetInnerHTML' like:
const msg = () => ({__html: 'Some text here'});
and use it in your code like:
For reference for 'dangerouslySetInnerHTML' read this:
dangerouslySetInnerHTML