Closed
Description
I'm trying to bundle some web pages filtered through Readability as EPUB, and the format requires the content to be XHTML. However, an element's .innerHTML
returns a HTML, not XHTML serialization.
I would like to propose a serializer
option, that defaults to serializer: el => el.innerHTML
but which can be swapped to serializer: (new window.XMLSerializer()).serializeToString
when returning data here:
Lines 2056 to 2065 in 52ab9b5
Metadata
Assignees
Labels
No labels