Below is my backend code that send HTML to my frontend react app and I am using dangerouslySetInnerHTML to render this data. For some reason (don’t know if this is the right behavior) my hyperlinks don’t have underlines and my ordered lists dont have numbers:
<code>const html = `<div>bro what <a href="https://www.w3schools.com/">Visit W3Schools.com!</a><ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol> </div>`
const summary = <div dangerouslySetInnerHTML={{ __html: html }} />;
</code>
<code>const html = `<div>bro what <a href="https://www.w3schools.com/">Visit W3Schools.com!</a><ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol> </div>`
const summary = <div dangerouslySetInnerHTML={{ __html: html }} />;
</code>
const html = `<div>bro what <a href="https://www.w3schools.com/">Visit W3Schools.com!</a><ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol> </div>`
const summary = <div dangerouslySetInnerHTML={{ __html: html }} />;
Am I missing something?
3