aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/HTML.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Writers/HTML.hs')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 196aafad3..0f2a2b5dc 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -243,7 +243,7 @@ inlineToHtml opts EmDash = text "—"
inlineToHtml opts EnDash = text "–"
inlineToHtml opts Ellipses = text "…"
inlineToHtml opts Apostrophe = text "’"
-inlineToHtml opts (Str str) = text $ stringToSGML str
+inlineToHtml opts (Str str) = text $ encodeEntities str
inlineToHtml opts (TeX str) = text $ encodeEntities str
inlineToHtml opts (HtmlInline str) = text str
inlineToHtml opts (LineBreak) = selfClosingTag "br" []