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:
const msg = "Some <strong>text</strong> here"
I want to show like this on page
Some text here
If I use dangerousHtml
then it's showing like this without bold "Some text here"
Can anyone please help?
Thanks in advance!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…