sanitize-html
sanitize-html copied to clipboard
linear-gradient in background style property seems to breaks the whole property
Using the latest version of the package, it seems that linear-gradient in combination with url(), set in the background inside an inline style property will break the background.
Steps to reproduce :
- Use CSS property & value :
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(any_url) no-repeat center center;in any html tag - Pass it to the sanitize function
- The selected tag will have its background property entirely removed.
Are there any workaround ?