Re: Tree Iter: Text out of pango markup



* muppet <scott asofyet org> [2005-02-04 03:45]:
All you really want to do, though, is strip tags, so even
pango_parse_markup() would be overkill for you.  Things like
$markup =~ s/<[^>]*>//g are what perl does best.  :-)

Is that sufficient in the case of Pango markup? Are there no edge
cases like with HTML where this could break? How does Pango deal
with angle brackets that are supposed to be displayed, and aren't
part of markup?

Regards,
-- 
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;



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