Ver originalfrom BeautifulSoup import BeautifulSoupdoc = "<html><p>Peter's house</p></html>"text = BeautifulSoup(doc).get_text()print text.getText()