aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/xmls.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-06-06 17:47:49 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit364e6888fb5e1f5a8dd3fc47b80db0fa8bf9953d (patch)
treeae064b37173be8aecf1a038cfde03b84ab142678 /src/sdp/output/xmls.d
parentheadings & toc, monospace and links, fix (diff)
epub, special characters in content.opf header, fix
Diffstat (limited to 'src/sdp/output/xmls.d')
-rw-r--r--src/sdp/output/xmls.d9
1 files changed, 9 insertions, 0 deletions
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, "&#38;")
+ .replaceAll(rgx.xhtml_quotation, "&#34;")
+ .replaceAll(rgx.xhtml_less_than, "&#60;")
+ .replaceAll(rgx.xhtml_greater_than, "&#62;")
+ .replaceAll(rgx.nbsp_char, " ");
+ return _txt;
+ }
string font_face(string _txt){
_txt = (_txt)
.replaceAll(rgx.inline_emphasis, ("<em>$1</em>"))