epub-metadata-4.1: Library for parsing epub document metadata

Safe HaskellNone

Codec.Epub.Util

Description

Utility functions shared by modules that need to read the contents of XML documents.

Synopsis

Documentation

removeIllegalStartChars :: String -> StringSource

An evil hack to remove *ILLEGAL* characters before the XML declaration. Why do people write software that does this? Can't they follow directions?

removeEncoding :: String -> StringSource

An evil hack to remove encoding from the document

removeDoctype :: String -> StringSource

An evil hack to remove any <!DOCTYPE ...> from the document