@@ -243,7 +243,7 @@ inlineToHtml opts EmDash = text "—"
243inlineToHtml opts EnDash = text "–"
243inlineToHtml opts EnDash = text "–"
244inlineToHtml opts Ellipses = text "…"
244inlineToHtml opts Ellipses = text "…"
245inlineToHtml opts Apostrophe = text "’"
245inlineToHtml opts Apostrophe = text "’"
246−inlineToHtml opts (Str str) = text $ stringToSGML str
246+inlineToHtml opts (Str str) = text $ encodeEntities str
247inlineToHtml opts (TeX str) = text $ encodeEntities str
247inlineToHtml opts (TeX str) = text $ encodeEntities str
248inlineToHtml opts (HtmlInline str) = text str
248inlineToHtml opts (HtmlInline str) = text str
249inlineToHtml opts (LineBreak) = selfClosingTag "br" []
249inlineToHtml opts (LineBreak) = selfClosingTag "br" []