coleifer/micawber — pull request #21 by ivirabyan (2013-05-24 10:12:36+00:00)
Title: html_parse() unescapes html entities

>>> parse_html('<img src="http://www.youtube.com/embed/_MbtUZSXQR4" /img>', ProviderRegistry(), urlize_all=False)
u''

As you can see, I passed in escaped html, and now it is unescaped
I found out that it replaces escaped text with unescaped in this line:

url.replaceWith(BeautifulSoup(replacement))

If we won't wrap `replacement` with `BeautifulSoup`, `replaceWith()` method automatically escapes the string while modifing the original soup.
I really don't see the point why the `replacement` is wrapped by `BeautifulSoup` call.