Created
February 25, 2021 03:44
-
-
Save IwonGunawan/5cef6d044cab2091f74b99b8e642b3f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse str to html : | |
#1 | |
<div dangerouslySetInnerHTML={{__html: '<strong>strong text</strong>'}} /> | |
#2 | |
var parse = require('html-react-parser'); | |
parse('<div>text</div>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment