Comments (1)
Huh, looks like named entities aren't supported in epub3. https://www.mobileread.com/forums/showthread.php?t=315992
johnfactotum/foliate#578
I was sending it invalid xhtml as the user generated chapters.
In the interest of anybody having this problem in the future, my solution was to make sure that the XmlDefaultEntityMapping matches incoming html and outgoing xhtml. In my case, I'm using
String chapterText = XmlDocumentFragment.parse(chapters[i].text, entityMapping: XmlDefaultEntityMapping.html()).innerXml;
document.findAllElements('body').first.innerXml = chapterText;
// (get the file), construct a real directory if it's not made already, Write to file
returnfile = await _writeToFile(specificFile, document.toXmlString(entityMapping: XmlDefaultEntityMapping.xml()));
from iridium.
Related Issues (20)
- [navigator] Style issues
- clicking in contents tab does not go to chapter in reader_widget and widget_demo HOT 6
- [navigator] Migrate to R2 JS HOT 1
- [server] Replace http_server by shelf
- [server] Start N servers in isolates
- [server] SSL
- [navigator] Full TdM (including all levels, in expandable ListView)
- Android: jquery security vulnerability prevents test success and app store uploads HOT 6
- Toggle mark disappears when a user exits the Reader Screen HOT 1
- Fix iOS issues caused by the R2 JS integration HOT 2
- Integrate LCP into the Demo App
- Persistant highlights, bookmarks, etc in widget.
- Unsupported operation: Infinity or NaN toInt
- [navigator] Wrong variable name in ReaderAnnotationRepository
- How to protect ebook content without LCP Lib
- IPA link down
- Gestures not working HOT 5
- iOS: FormatException: Unexpected extension byte (at offset 6) when downloading a book
- Is this project dead ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iridium.