XML roundtrip failing on &
The roundtrip tests in http4s-fs2-data are flaky, they sometimes fail on escaped entities:
https://github.com/http4s/http4s-fs2-data/actions/runs/5514890884/job/14930647806?pr=97 (only &)
and https://github.com/http4s/http4s-fs2-data/actions/runs/5481925805/job/14845710701 (combined with a lt).
It's not yet clear whether the input is actually invalid XML or fs2-data handles it incorrectly, to be investigated.
Failing data from above are:
<戝蜷븝낌畏:彵ᾋ銋궜来鯒妓鐡뗑 痴놰绯猿Đ꺠询:尵蜙헕稜籟="硗잤왠" 팩菾聢魣ந넞="瀝&䇉"/>
and
<碅旜귣锍橨礶:齸踡軽걪폄駗 븁彦="纭徍膽挚訥尦" 期煫俠뀊뿕慉="剧ﱄ蘊儒ﴓ黢" 뇄揆瓊议鋐宇="岒᚛抂밐侷">ᅦ뽚昄옌&lt;熞㸑䁛ን탂Ꚁ혆⥕ᰓ䖐铭콾Ḡᙵ</碅旜귣锍橨礶:齸踡軽걪폄駗>
This problem seems to come from the way scala xml serializes the nodes. Do you confirm @ybasket?
Yes, it seems caused by Scala-xml's faulty behavior. I was able to work around the problem in http4s-fs2-data by adjusting its test generators, hence closing this issue.