summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-10-15 14:23:48 +0200
committerraveit65 <[email protected]>2020-10-24 22:58:04 +0200
commitd906764f8333f5f366c61a9b1a8c32a2d8765aa2 (patch)
tree6c05ee0c977b8e35dc27492945b2cfac3c8040f6
parent633b99b07bdc0fd9808fa0d38ab6bfb50a35dc90 (diff)
downloadatril-1.24.tar.bz2
atril-1.24.tar.xz
epub backend: Escape link text to display & in index content1.24
-rw-r--r--backend/epub/epub-document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c
index 2f4eab0f..8be5b74b 100644
--- a/backend/epub/epub-document.c
+++ b/backend/epub/epub-document.c
@@ -255,7 +255,7 @@ epub_document_make_tree_entry(linknode* ListData,LinksCBStruct* UserData)
link = ev_link_new((gchar*)ListData->linktext,ev_action);
gtk_tree_store_append (GTK_TREE_STORE (UserData->model), &tree_iter,(UserData->parent));
- title_markup = g_strdup((gchar*)ListData->linktext);
+ title_markup = g_markup_escape_text ((gchar*)ListData->linktext, -1);
gtk_tree_store_set (GTK_TREE_STORE (UserData->model), &tree_iter,
EV_DOCUMENT_LINKS_COLUMN_MARKUP, title_markup,