Thread: keep_only_tags
View Single Post
Old 03-18-2010, 08:02 PM   #1
ultimatebuster
Junior Member
ultimatebuster began at the beginning.
 
ultimatebuster's Avatar
 
Posts: 7
Karma: 10
Join Date: Jul 2009
Device: Kindle 2
keep_only_tags

So apparently you can keep the tag with a the id of "content"
Code:
keep_only_tags = [dict(id=['content'])]
However, is it possible to keep the tag with a class? As the class is a built-in word for python, like:

Code:
<div class="content" id="124"></div>

Last edited by ultimatebuster; 03-18-2010 at 08:11 PM.
ultimatebuster is offline   Reply With Quote