diff --git a/Text/XML/Light/Output.hs b/Text/XML/Light/Output.hs
--- a/Text/XML/Light/Output.hs
+++ b/Text/XML/Light/Output.hs
@@ -120,7 +120,10 @@
   '>'   -> showString "&gt;"
   '&'   -> showString "&amp;"
   '"'   -> showString "&quot;"
-  '\''  -> showString "&apos;"
+  -- we use &#39 instead of &apos; because IE apparently has difficulties
+  -- rendering &apos; in xhtml.
+  -- Reported by Rohan Drape <rohan.drape@gmail.com>.
+  '\''  -> showString "&#39;"
   -- XXX: Is this really wortherd?
   -- We could deal with these issues when we convert characters to bytes.
   _ | (oc <= 0x7f && isPrint c) || c == '\n' || c == '\r' -> showChar c
diff --git a/xml.cabal b/xml.cabal
--- a/xml.cabal
+++ b/xml.cabal
@@ -1,5 +1,5 @@
 Name:            xml
-Version:         1.3.3
+Version:         1.3.4
 Homepage:        http://code.galois.com
 Synopsis:        A simple XML library.
 Description:     A simple XML library.
