Brian Sutherland <> added the comment:

I've just discovered yet another way in which lxml is mangling my HTML. I'm fed 
up with fixing 
around the edges.

So in the next week or so, I will try re-implement regular expressions to find 
and replace the 
<img> tags. Given that malthe seems to think it's a reasonable idea I'll do it 
inside repoze.bitblt 
on a branch first.

So, any ideas on how to robustly find <img> tags in HTML via regexes? Any 

Also, what kind of backwards compatibility does repoze.bitblt require? Should I 
replace the 
existing rewrite_image_tags or implement a new one alongside and implement some 
kind of 
configurability into ImageTransformationMiddleware?

Repoze Bugs <>
Repoze-dev mailing list

Reply via email to