From ed29931d2799544d87b6843d243f668e0a3085b1 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Wed, 10 Apr 2019 16:04:10 +0200
Subject: textotei: replace angle brackets with xml entities

---
 ekdosis.dtx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 8868cef..2a7c73b 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -792,6 +792,8 @@ end
 
 function ekdosis.textotei(str)
    str = string.gsub(str, "%s?\\par%s?", "</p>\n<p>")
+   str string.gsub(str, "%<", "&lt;")
+   str string.gsub(str, "%>", "&gt;")
    str = lem_rdg_totei(str)
    for i = 1,#cmdtotags
    do
-- 
cgit v1.2.3

