epub-metadata-5.4: Library for parsing epub document metadata
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.Epub.Util

Description

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

Synopsis

Documentation

removeIllegalStartChars :: String -> String Source #

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 -> String Source #

An evil hack to remove encoding from the document

removeDoctype :: String -> String Source #

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