How to include html tags in text editor? [Snippet attached]
问题 I am making text editor using, react-draft-wysiwyg and draftjs-to-html .. And also I have injected the dynamic html into editor like, index.js: export default function App() { const dynamicData = `<div class="heading"> This text needs to display along with the <span> html tags </span> surrounded </div>`; const handleInputChange = (e) => { console.log("event ", e.target.value); }; return ( <> <ContentEditor name="dynamicContent" value={dynamicData} onChange={(event) => handleInputChange(event)