remarkablemark/html-react-parser

SVG html with large Data URL returns empty SVG code

ShahidNauman opened this issue · 2 comments

The <image /> tag in HTML for SVG is stripped off, if the attribute href contains a large data URL. Hence, the parsed HTML contains an empty <svg /> tag, and no image is displayed.

For better understanding, I have created a sample application on CodeSandbox:
Edit html-react-parser (forked)

@ShahidNauman your HTML is invalid. Even if you render it with dangerouslySetInnerHTML, it is blank in the CodeSandbox.

Closing issue due to inactivity