aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/xmls.d
diff options
context:
space:
mode:
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, "&")
+ .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, ("<em>$1</em>"))