Skip to content

Best practice for styling content set by dangerouslySetInnerHTML #468

Answered by ben-rogerson
DavidVaness asked this question in Q&A
Discussion options

You must be logged in to vote

hey David, great to hear that :)

Just like that typography plugin, you'll need to use a scoping class to style the children within the container.
It's probably best to keep this contained in a plugin so you could start with the typography plugin and customise it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DavidVaness
Comment options

Answer selected by DavidVaness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants