View Single Post
Old 04-01-2010, 01:01 PM   #1714
gambarini
Connoisseur
gambarini began at the beginning.
 
Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
Quote:
Originally Posted by Starson17 View Post
It doesn't support conditionals at all. It will allow you to define extensive lists of tags:

Code:
keep_only_tags = [dict(name='div', attrs={'class':['feature','banner']}),
                          dict(name='a', attrs={'id':['first','second','third']}),
                          dict(name='span', attrs={'potato':['idaho', 'red']})  
                                  ]
Conditionals can be supported with other methods.

Edit: actually, it may support conditionals, I've just never used it.
thanks!!!!!!
gambarini is offline