It looks like you're using Beautiful Soup 3. In Beautiful Soup 4, the
default behavior of .text is what you asked for:
>>> from bs4 import BeautifulSoup
>>> markup = '<span class="OrigineDefinition">(mot espagnol, du tagal <i>abaka</i>)</span>'
>>> soup = BeautifulSoup(markup)
>>> soup.find("span", { "class" : "OrigineDefinition" }).text
u'(mot espagnol, du tagal abaka)
The .text attribute is an alias for the get_text() method, which is
fairly customizable:
http://www.crummy.com/software/BeautifulSoup/bs4/doc/#get-text
Leonard
> --
> You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
> To post to this group, send email to
beauti...@googlegroups.com.
> To unsubscribe from this group, send email to
beautifulsou...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/beautifulsoup?hl=en.
>