Remix.run Logo
lukan 3 hours ago

It does also give the right solution, using an xml parser.

croes an hour ago | parent [-]

We don’t know the use case.

Maybe the questioner is also in full control of the HTML creation and they don’t need a parser for all possible HTML edge cases.