Mark

Results 123 comments of Mark

@piszczu4 this is expected behavior because this library parses inline styles and inline styles do not support `!important`

@piszczu4 can you provide a reproducible example of this not working for you?

@piszczu4 I can't seem to open the CodeSandbox? ![Screen Shot 2024-02-09 at 10 41 02 AM](https://github.com/remarkablemark/html-react-parser/assets/10594555/1da0da8b-0b92-434f-b2e7-2e66d519e3b3)

I've been really busy these days so I haven't had a chance to look into this. If anyone has a solution, feel free to open a PR and I can...

@ArtsiomReutovich can [replace](https://github.com/remarkablemark/html-react-parser/tree/v5.1.10#replace) work as a workaround for you? If it doesn't, a quick hack would be to do a `replaceAll('!important', '')` for your HTML string.

@olupelumi can you create a CodeSandbox? See [JavaScript](https://codesandbox.io/s/940pov1l4w) or [TypeScript](https://codesandbox.io/s/html-react-parser-z0kp6)

@jaiprep Can you provide a reproducible example with [StackBlitz](https://stackblitz.com/edit/html-react-parser)?

@Diogofmr see if this [Stackoverflow](https://stackoverflow.com/questions/69343038/cant-import-the-named-export-xxxx-from-non-ecmascript-module-only-default-expo) solves the issue for you