diff --git a/js/Readium.js b/js/Readium.js index 53c940a73..077752d12 100644 --- a/js/Readium.js +++ b/js/Readium.js @@ -64,6 +64,12 @@ define(['readium_shared_js/globals', 'text!version.json', 'jquery', 'underscore' contentDocumentHtml = contentDocumentHtml.replace(/[\s]*<\/title>/g, '<title>TITLE'); contentDocumentHtml = contentDocumentHtml.replace(//g, 'TITLE'); + // Replace quotes < IE 10 cannot handle proper quoting when traversting textNodes. + contentDocumentHtml = contentDocumentHtml.replace(/(“)/g, '"'); // “ + contentDocumentHtml = contentDocumentHtml.replace(/(”)/g, '"'); // ” + // Replace apostrophes + contentDocumentHtml = contentDocumentHtml.replace(/(’)/g, '\''); // ’ + return contentDocumentHtml; };