Re: Remove Markups from string



On Mon, Jan 20, 2003 at 08:12:07PM -0200, Andr? Casteliano wrote:
using gtk_tree_model_get ( ... ) i get a string with pango markups like: 
"<span foreground="red">mytext</span>"

I need only the string "mytext". Wat I can do to remove markups from my string ?

It looks like pango_parse_markup() will do that.

char *output;
if (pango_parse_markup(input, -1, 0, NULL, &output, NULL, NULL)) {
        ...
        g_free(output);
}

-- 
      Evan Martin
martine cs washington edu
  http://neugierig.org



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