Skip to content

How to allow style attributes and base64 images when using rehypeSanitize #1254

Answered by wooorm
Sagie501 asked this question in Q&A
Discussion options

You must be logged in to vote

Style isn’t safe. You probably shouldn’t.... data protocols aren’t safe either.

If you‘re going to do unsafe things, don’t use rehype-sanitize

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Sagie501
Comment options

@wooorm
Comment options

@ChristianMurphy
Comment options

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