3 ms·
React has a deliberately inconvenient API for injecting unsanitized HTML markup straight into the DOM: <div dangerouslySetInnerHTML={{ __html: "Some raw HT
by tshaddox 5y ago
React has a deliberately inconvenient API for injecting unsanitized HTML markup straight into the DOM:
<div dangerouslySetInnerHTML={{ __html: "Some raw HTML" }}></div>
https://reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml https://reactjs.org/docs/dom-elements.html#dangerouslysetinn...