summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-11-01 16:45:28 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-11-01 16:45:28 +0300
commit55fd715a4ea184644600be54531ce5b28bec9a90 (patch)
tree225308541da74f81405db717b001a1ef614a1787
parent7f8d501b15fbe882f6e6b67cb1eae96a2e655748 (diff)
downloadtexo-55fd715a4ea184644600be54531ce5b28bec9a90.tar
texo-55fd715a4ea184644600be54531ce5b28bec9a90.tar.xz
texo-55fd715a4ea184644600be54531ce5b28bec9a90.zip
[texo:html] Ampersand fix.
-rw-r--r--src/html.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/html.cpp b/src/html.cpp
index 92b4e05..6dd6098 100644
--- a/src/html.cpp
+++ b/src/html.cpp
@@ -10,6 +10,7 @@ void TexoProducerHTML::Put(const Texo &piece)
switch (piece.c) {
case '<': exporter.Put("&lt;"); break;
case '>': exporter.Put("&gt;"); break;
+ case '&': exporter.Put("&amp;"); break;
default: exporter.Put(piece.c); break;
}
}