Thanks. That works.
Quote:
Originally Posted by kovidgoyal
img.name = 'img'
img['src'] = 'whatever'
|
I looked at log and when I used replaceWith() function calibre didn't know that it must fetch those images. Same thing when I did insert
Code:
sometag.insert(pos, '<img src="link" />')
. When I parsed this tag into soup it inserts '\n'. Anyway, first method works. Best regards.