summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/glibext/linesegment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glibext/linesegment.c b/src/glibext/linesegment.c
index 0ea0873..66744b0 100644
--- a/src/glibext/linesegment.c
+++ b/src/glibext/linesegment.c
@@ -613,8 +613,8 @@ char *get_line_segment_text(const line_segment *segment, bool markup)
result = stradd(result, ">");
valid = strdup(segment->text);
- valid = strrpl(valid, "<", "&lt;");
valid = strrpl(valid, "&", "&amp;");
+ valid = strrpl(valid, "<", "&lt;");
result = stradd(result, valid);