If one wanted to remove only the Comment portion of the following
Code:
<p id="BlogDate" class="calibre9">Posted By <u class="calibre10">admin</u> On August 21, 2010 @ 10:15 am In <u class="calibre10">Uncategorized</u> | <u class="calibre10"><a href="#comments_controls" class="calibre6">No Comments</a></u></p>
So I would get something like
Posted By Jim Jones On August 21,2010 @ 10:15am In Uncategorized
again leaving off the comments_controls. How would this be done.
I thought maybe using remove_tags() but I'm not certain what dict and attrb I would use. I tried with no luck the following:
Code:
remove_tags = [dict(name='a', attrs={'href':'#comment controls'})]
thanks.
i attached the recipe i have so far. it works just would like to remove the comment control thing...