Html sanitizer converts #hex color code to rgba #266
amishra1911
started this conversation in
General
Replies: 3 comments 2 replies
-
Unfortunately, there isn't currently. It's the result of AngleSharp's CSS parser which behaves in the same way as browsers. |
Beta Was this translation helpful? Give feedback.
2 replies
-
It is a pain, if you sanitize for an html email, it creates rgba which various email clients don't support! I'll have to look at Anglesharp then. |
Beta Was this translation helpful? Give feedback.
0 replies
-
See #330 for a workaround/fix. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Team,
I am using the sanitize method of HtmlSanitizer to sanitize the html code.
I noticed the #hex code present in style tag got converted to rgba.
Is there any way to prevent this conversion?
e.g-
Beta Was this translation helpful? Give feedback.
All reactions