12-10-2019, 07:54 AM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Oct 2019
Device: Kobo Aura HD, Pocketbook InkPad 3 (PB740)
|
4.5: Parsing failed: EntityRef: expecting ';'
Calibre 4.5, epub, check for errors within epub:
a link is given as in: ... <a href="https://www.xxx.yy/index.php?eID=dumpFile&t=f&f=4182....">...</a>... note the ampersands in the link When checking for errors within (the whole) ebook Calibre 4.5 breaks with an error message: "Parsing failed: EntityRef: expecting ';', line xxx, column yyyy..." Within the editor (edit area and simplified view area) the link itself opens correctly an external browser with the specified page (a pdf in this case). URL encoding (like %26 instead of ampersand) will not display the website. I think there is something wrong with the regex check within urls |
12-10-2019, 09:12 AM | #2 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Standalone ampersands are not valid in HTML. You need to use &
|
12-10-2019, 11:13 AM | #3 |
Junior Member
Posts: 8
Karma: 10
Join Date: Oct 2019
Device: Kobo Aura HD, Pocketbook InkPad 3 (PB740)
|
*WITHIN* a link? I don't think so....
(and, as implied above, what will a Server answer if it gets "https://..../whatever&whatever..."?) |
12-10-2019, 11:27 AM | #4 | |
Bibliophagist
Posts: 35,393
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I modified the link to this message and Firefox, Chrome and Edge Dev open this link happily: Code:
https://www.mobileread.com/forums/showpost.php?p=3926556&postcount=4 Last edited by DNSB; 12-10-2019 at 11:33 AM. |
|
12-10-2019, 12:43 PM | #5 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Or you could url encode your url, as opposed to xml escaping and the & will happily get % encoded.
|
12-10-2019, 01:38 PM | #6 |
Junior Member
Posts: 8
Karma: 10
Join Date: Oct 2019
Device: Kobo Aura HD, Pocketbook InkPad 3 (PB740)
|
You (all) are right, I was wrong. Masking with & or %26 actually works without problems - starting the browser from the link within the *preview window* (or from the resulting ebook). My error was Ctrl-clicking on the href-url within the *edit window" (when masking with & or %26. That way the url is given as is within the edit window and the server won't find the page.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Parsing Failed: Namespace Prefix pub for type on nav is not defined | hank3rd | Editor | 5 | 03-12-2018 06:30 PM |
ebook reader: blob error expecting text | rutmang | Calibre | 8 | 08-26-2017 08:52 AM |
Edit book/Check book/Parsing failed: Inconsistencies in counting | chaot | Editor | 4 | 06-02-2016 11:20 AM |
Random "HTML 5 parsing failed" | issproevolution | Recipes | 4 | 01-23-2014 03:33 AM |
Am I expecting too much too soon? | cozworth | Reading and Management | 14 | 11-12-2007 12:39 PM |