Permalink
Browse files

Merge pull request #14 from eriolv/master

Fixed escaping HTML entities within strings behavior change in  python-beautifulsoup 3.2.1
  • Loading branch information...
brendonh committed Jun 25, 2012
2 parents 64868b4 + c444a8d commit 32b2f6b696ab9d3ad902f432a7ccc84198d155a4
Showing with 1 addition and 1 deletion.
  1. +1 −1 pyth/plugins/xhtml/reader.py
@@ -55,7 +55,7 @@ def format(self, soup):
text = unicode(node)
lines = [x.strip() for x in text.splitlines()]
text = ' '.join(lines)
- node.replaceWith(text)
+ node.replaceWith(BeautifulSoup.BeautifulSoup(text))
soup = BeautifulSoup.BeautifulSoup(unicode(soup))
# replace all <br/> tag by newline character
for node in soup.findAll('br'):

0 comments on commit 32b2f6b

Please sign in to comment.