Re: Gtk2::Entry with Pango markup



"Emmanuel Rodriguez" <emmanuel rodriguez gmail com> writes:

      # Escape the XML entities - MUST be done before applying the Pango markup
      $text =~ s/([<&>])/$ENTITIES{$1}/eg;

Glib::Markup::escape_text() might do that.  (A well-hidden func :-)



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