I get a Html string from my API : "consigne": "<p>test</p>\n"
and I want to display it on my editor.
My Editor is :
<Editor id="consigne" name= "consigne" editorState={consigne} value={draftToHtml(convertToRaw(consigne.getCurrentContent()))} onEditorStateChange={(consigne) => {this.setState({consigne})} localization={{ locale: 'fr' }}/>
How I can convert this to my editor ?