I did this:
def preprocess_html(self, soup):
for alink in soup.findAll('a'):
if alink.string is not None:
tstr = alink.string
alink.replaceWith(tstr)
return self.adeify_images(soup)
But no improvement - nor even any change.
Is the code how you intended it to be?
Last edited by wonderose; 04-28-2011 at 07:05 AM.
|