> Expected behavior
>
> The text “AB & CD” should be formatted in SVG as “AB & CD”. The
> resulting SVG should be valid.
>
> Actual behavior
>
> The actual output from Lilypond is: “AB & &D”. The resulting SVG
> is invalid.
I cannot reproduce that. For me, both the 2.26.0 GNU/Linux binary
from lilypond.org and a self-compiled version from current git yield
the expected result.
[Note that your MWE has an ordinary space between »B« and »&«, so I've
replaced it manually with U+200A.]
Please try the binaries from lilypond.org and check the output.
Werner