-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid HTML escaping when setting editor value #91
Comments
I have the same Issue. <ReactSummernote
children={<div dangerouslySetInnerHTML={{ __html: value }}></div>} |
In the beginning I tried that approach too, but it adds and extra In any case, thanks a lot for the hint! :) |
You also can just unescape the string before use it in the editor
|
You can do the following |
Hi,
As mentioned in #51, after that PR was merged, I don't find a way to properly initialise a
ReactSummernote
component with HTML content. For example, ifthis.props.value
is set toHello <b>world</b>!
and I usechildren={ this.props.value }
, the editor is initialised with the HTML escaped version (i.e.Hello <b>world</b>!
).I guess I'm missing something obvious here, but I still not able to find the solution. Help? :)
The text was updated successfully, but these errors were encountered: