[gnome-maps] Escape markup in search results and placebubble



commit b6772c7a7775b19d1d893f5bc5d49bc0a1db0bdd
Author: Alaf Azam <alafazam gmail com>
Date:   Tue Jan 26 17:17:24 2016 +0530

    Escape markup in search results and placebubble
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761090

 src/placeBubble.js  |    2 ++
 src/placeListRow.js |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/placeBubble.js b/src/placeBubble.js
index 8fd4279..02c1b50 100644
--- a/src/placeBubble.js
+++ b/src/placeBubble.js
@@ -19,6 +19,7 @@
  * Author: Damián Nohales <damiannohales gmail com>
  */
 
+const GLib = imports.gi.GLib;
 const Gtk = imports.gi.Gtk;
 const Format = imports.format;
 const Lang = imports.lang;
@@ -138,6 +139,7 @@ const PlaceBubble = new Lang.Class({
         }
 
         infos.forEach((function(info) {
+            info = GLib.markup_escape_text(info,-1);
             let label = new Gtk.Label({ label: info,
                                         visible: true,
                                         use_markup: true,
diff --git a/src/placeListRow.js b/src/placeListRow.js
index 34f29e4..d4286fc 100644
--- a/src/placeListRow.js
+++ b/src/placeListRow.js
@@ -57,7 +57,7 @@ const PlaceListRow = new Lang.Class({
 
         this._name.label = this._boldMatch(markup, searchString);
         this._details.max_width_chars = maxChars;
-        this._details.label = formatter.getDetailsString();
+        this._details.label = GLib.markup_escape_text(formatter.getDetailsString(),-1);
         this._icon.gicon = this.place.icon;
 
         if (type === PlaceStore.PlaceType.RECENT ||


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]