Skip to content

Instantly share code, notes, and snippets.

@kenakingkong
Last active November 25, 2020 23:15
Show Gist options
  • Save kenakingkong/fe3a499ceacc3d5a8c41f55073e5584b to your computer and use it in GitHub Desktop.
Save kenakingkong/fe3a499ceacc3d5a8c41f55073e5584b to your computer and use it in GitHub Desktop.
// excerpt from src/components/mycard.js
...
<p
className="card-content"
dangerouslySetInnerHTML={{
__html: poem.content.replace(/<figure.+figure>/g,"")
}}
/>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment