]> err.no Git - mapper/commitdiff
Use g_markup_printf_escaped
authorKaj-Michael Lang <milang@tal.org>
Fri, 25 Jan 2008 08:16:01 +0000 (10:16 +0200)
committerKaj-Michael Lang <milang@tal.org>
Fri, 25 Jan 2008 08:16:01 +0000 (10:16 +0200)
src/poi-gui.c
src/utils.h

index fd48425ed5d926876a825afaf45c2e866d0c629d..17e11cda8a2eb5e08d621225a230a78cc055a253 100644 (file)
@@ -722,7 +722,7 @@ if (!p)
 
 ls=strlen(p->label);
 
-phtml=g_strdup_printf(
+phtml=g_markup_printf_escaped(
        "<html><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"
        "<body>"
        "<b>%s%s</b><br><table>"
index 6bfaa1b8b772d7d48abb1ca55ce8ed8dbe41e133..a1e1467d85575c1a352b62810f07dbefa2a3d880 100644 (file)
@@ -132,7 +132,7 @@ if (_http_proxy_host) { \
 
 #ifdef WITH_HILDON
 #define MACRO_BANNER_SHOW_INFO(A, S) { \
-    gchar *my_macro_buffer = g_strdup_printf("<span size='%s'>%s</span>", \
+    gchar *my_macro_buffer = g_markup_printf_escaped("<span size='%s'>%s</span>", \
             INFO_FONT_TEXT[_info_font_size], (S)); \
     hildon_banner_show_information_with_markup(A, NULL, my_macro_buffer); \
     g_free(my_macro_buffer); \