Re: Remove Markups from string
- From: Evan Martin <martine cs washington edu>
- To: Andr? Casteliano <digitalcoder users sourceforge net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Remove Markups from string
- Date: Mon, 20 Jan 2003 16:11:06 -0800
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]