BeautifulSoup vs. loose & chars

Felipe Almeida Lessa felipe.lessa at gmail.com
Tue Dec 26 11:07:27 EST 2006


On 26 Dec 2006 04:22:38 -0800, placid <Bulkan at gmail.com> wrote:
> So do you want to remove "&" or replace them with "&" ? If you want
> to replace it try the following;

I think he wants to replace them, but just the invalid ones. I.e.,

This & this & that

would become

This & this & that


No, i don't know how to do this efficiently. =/...
I think some kind of regex could do it.

-- 
Felipe.



More information about the Python-list mailing list