From 364e6888fb5e1f5a8dd3fc47b80db0fa8bf9953d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 6 Jun 2017 17:47:49 -0400 Subject: epub, special characters in content.opf header, fix --- src/sdp/output/xmls.d | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/sdp/output/xmls.d') diff --git a/src/sdp/output/xmls.d b/src/sdp/output/xmls.d index ed9b548..2482f28 100644 --- a/src/sdp/output/xmls.d +++ b/src/sdp/output/xmls.d @@ -30,6 +30,15 @@ template outputXHTMLs() { } return _txt; } + string special_characters_text(string _txt){ + _txt = (_txt) + .replaceAll(rgx.xhtml_ampersand, "&") + .replaceAll(rgx.xhtml_quotation, """) + .replaceAll(rgx.xhtml_less_than, "<") + .replaceAll(rgx.xhtml_greater_than, ">") + .replaceAll(rgx.nbsp_char, " "); + return _txt; + } string font_face(string _txt){ _txt = (_txt) .replaceAll(rgx.inline_emphasis, ("$1")) -- cgit v1.2.3