View Single Post
Old 12-25-2011, 01:45 PM   #3
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,522
Karma: 13088847
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
I'm not sure what you are trying to accomplish. My guess is the problem is you're trying to keep a tag inside of another tag you are not keeping.

For example, say you have something like


Div Id=main
** *Div id=inner
** * * H1 xxxxx /h1
** */div
Div .... /div
/div

You can't just keep*H1, you need to keep the div id= main. In general, you want to keep the innermost container element that holds all the contents you want to keep, like [dict(id='main')], and use remove_tags to trim stuff you don't want.
Barty is offline   Reply With Quote