joseph / Monocle

A silky, tactile browser-based ebook JavaScript library.
http://monocle.inventivelabs.com.au
MIT License
743 stars 200 forks source link

how do you turn off the rendering of errors? #233

Closed billgoodyear closed 10 years ago

billgoodyear commented 10 years ago

How do i stop monocle rendering the pink box that highlights errors in the EPUB file?

The error reads as follows and i would prefer it not to print:

This page contains the following errors:

error mismatch on line 462 xxxxx

Below is a rendering of the page up to the first error

joseph commented 10 years ago

The trick is not to serve your content as XHTML Strict. You could remove the <?xml> declaration or change the content type of the response. You might want to transform your content to HTML5, perhaps using a tool like libxml on the server.