View Single Post
Old 08-22-2017, 11:13 PM   #223
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
Yes, just as DiapDealer said, you need to extract just the image tag not the entire line before passing it to soup to parse/fix. Having a closing div tag on the end of that line and passing it to soup will remove it since there is no matching starting div in the piece of code you passed to it.

Last edited by KevinH; 08-23-2017 at 09:43 AM.
KevinH is offline   Reply With Quote