~ken-vandine/gwibber/lp_906916

« back to all changes in this revision

Viewing changes to libgwibber/streams.vala

  • Committer: Ken VanDine
  • Date: 2011-12-08 23:19:18 UTC
  • mfrom: (1230.1.2 markup_escaping)
  • Revision ID: ken.vandine@canonical.com-20111208231918-tqg03xzfzaf7v8po
escape markup in strings that need to be used in a label

Show diffs side-by-side

added added

removed removed

Lines of Context:
621
621
              }
622
622
            }
623
623
 
 
624
            /* escape markup in some strings, pango doesn't like it */
 
625
            if (_link_name != null)
 
626
              _link_name = GLib.Markup.escape_text (_link_name);
 
627
            if (_link_description != null)
 
628
              _link_description = GLib.Markup.escape_text (_link_description);
 
629
            if (_image_name != null)
 
630
              _image_name = GLib.Markup.escape_text (_image_name);
 
631
            if (_video_name != null)
 
632
              _video_name = GLib.Markup.escape_text (_video_name);
 
633
 
624
634
            /* FIXME: hacky scrubbing of the html, we should find a 
625
635
               better way */
626
636
            _html = _html.replace("&query", "&query");