Parsing self-closing components the wrong way? #1237
Unanswered
torbjorn-stabo
asked this question in
Q&A
Replies: 1 comment 4 replies
-
@torbjorn-stabo whereas |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I have this in the middle of an HTML string:
I then run this:
The weird thing is that the HTML "stops" after the first element in the string. The element is rendered, though, an is rendered as expected from Next.js . So the page is cut short. But if I change the <Image ... /> elements to one of these I get the whole page:
..so it seems it's not a problem with self-closing elements but the element? and both seem to work, I guess because they're not empty? Using html-react-parser 5.0.10.
Beta Was this translation helpful? Give feedback.
All reactions