aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks-export.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-export.c')
-rw-r--r--src/bookmarks/ephy-bookmarks-export.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-bookmarks-export.c b/src/bookmarks/ephy-bookmarks-export.c
index 7f026f3a1..97c955259 100644
--- a/src/bookmarks/ephy-bookmarks-export.c
+++ b/src/bookmarks/ephy-bookmarks-export.c
@@ -166,7 +166,10 @@ ephy_bookmarks_export_rdf (EphyBookmarks *bookmarks,
if (smart_url)
{
- xml_node = xmlNewChild (item_node, ephy_ns, "smartlink", url);
+ xmlChar *encoded_url;
+ encoded_url = xmlEncodeEntitiesReentrant (doc, url);
+ xml_node = xmlNewChild (item_node, ephy_ns, "smartlink", encoded_url);
+ xmlFree (encoded_url);
}
add_topics_list (topics, kid, item_node, dc_ns);