Mark
Mark
@AlessandroGasperini does this resolve the issue for you? https://github.com/remarkablemark/html-react-parser/issues/1436#issuecomment-2131695591 Relates to https://github.com/remarkablemark/html-react-parser/issues/1455#issuecomment-2291689801
Release: - https://github.com/remarkablemark/html-react-parser/pull/1628#issuecomment-2521861131
@kaijuh This package only converts an HTML string to React elements. To convert a JSX string to React elements, you can use something like [react-jsx-parser](https://github.com/TroyAlford/react-jsx-parser).
Closing issue due to inactivity
@olivierr91 thanks for creating this issue. I'm unable to reproduce the bug that you're seeing: https://stackblitz.com/edit/html-react-parser-1755?file=src%2Findex.tsx Just checking, is your SVG valid?
@olivierr91 yes this library uses separate client and server HTML parsers. Are you able to replace `\r` with `\n` for your HTML string?
See [html-dom-parser](https://github.com/remarkablemark/html-dom-parser) This may be related to https://github.com/remarkablemark/html-dom-parser/pull/902 and https://github.com/remarkablemark/html-dom-parser/pull/923
@Nimit012 I believe this is an expected error in React 19. If you check the **Console**, you will see the error: ``` In HTML, cannot be a child of ....
@Nimit012 thanks it looks like the React 18 allowed for rendering `` inside of a `` (which is technically [invalid](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/html)):  My recommendation if you want to use React 19...
I'm also getting this error when running `jane-openapi generate` against [Bitly’s API specification](https://dev.bitly.com/v4/v4.json).