1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-14 09:03:15 +00:00
Files
xslt-lab/backend
claude-code 1692ae4360 Fix: source XML with & entities corrupted by html.UnescapeString
pickSourceXML always ran html.UnescapeString on the chosen source document,
turning valid "&" into a bare "&" and breaking XML parsing across all
engines (e.g. the default welcome example failed with "The entity name must
immediately follow the '&'"). The same corruption was already fixed for the
parameters path in e2fdbfd but the source path was missed.

Only unescape when the value is HTML-encoded (starts with "<"); leave
already well-formed XML untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MgybX3QbAWVzb9ZnroCA79
2026-06-30 14:54:25 +00:00
..