aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-04-10 16:04:10 +0200
committerRobert Alessi <alessi@robertalessi.net>2019-04-10 16:04:10 +0200
commited29931d2799544d87b6843d243f668e0a3085b1 (patch)
treec6ede2d4b28c632adc17767947f3fd3463e9fbc3
parent3fad62e74b9ce5a420189ec854421f3154473dc1 (diff)
downloadekdosis-ed29931d2799544d87b6843d243f668e0a3085b1.tar.gz
textotei: replace angle brackets with xml entities
-rw-r--r--ekdosis.dtx2
1 files changed, 2 insertions, 0 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 8868cef..2a7c73b 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -792,6 +792,8 @@ end
792 792
793function ekdosis.textotei(str) 793function ekdosis.textotei(str)
794 str = string.gsub(str, "%s?\\par%s?", "</p>\n<p>") 794 str = string.gsub(str, "%s?\\par%s?", "</p>\n<p>")
795 str string.gsub(str, "%<", "&lt;")
796 str string.gsub(str, "%>", "&gt;")
795 str = lem_rdg_totei(str) 797 str = lem_rdg_totei(str)
796 for i = 1,#cmdtotags 798 for i = 1,#cmdtotags
797 do 799 do