403be32d5a
Some EPUBs ship an OPF that isn't well-formed XML — a bare, unescaped `&` in a hand-built manifest id, e.g.: <item id="Chapter_1213_Search_&_Rescue_153" .../> A strict XML parser rejects it (`EntityRef: expecting ';'`) and the book fails to import on every platform: the web/desktop/Android reader-open path (foliate `EPUB.#loadXML`) and the Android/desktop native-import bridge (`parseEpubMetadataFromXML`, which parsed unsanitized). Bump foliate-js to escape any `&` that doesn't begin a valid character or entity reference, applied at both parse sites (readest/foliate-js#26). Valid and numeric references are preserved. Verified end-to-end on the real "Shadow Slave - Vol. 6" EPUB: imports in the web app (Chrome) and on a physical Xiaomi device via the native path, both of which previously failed. New unit test covers both `parseEpubMetadataFromXML` cases. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>