Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize-html error #339

Closed
apeman76 opened this issue Apr 12, 2023 · 1 comment
Closed

Sanitize-html error #339

apeman76 opened this issue Apr 12, 2023 · 1 comment

Comments

@apeman76
Copy link

Hello, im getting this error:

Failed to parse "a {color: #cccccc; href=}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: apostrophecms/sanitize-html#547

I dont need any css, so is there a way to set parseStyleAttributes in sanitizehtml?

@apeman76
Copy link
Author

I need to RTFM, my bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant