< > changed to < and > while parsing html with beautifulsoup in python
beautifulsoup, html, parsing, python
Solution
Setting `formatter=None` may help (http://www.crummy.com/software/BeautifulSoup/bs4/doc/#output-formatters), but this might be an indication that your HTML is invalid.
If that doesn't work, can you provide some sample code and HTML which reproduces the problem?
Problem
While processing html using Beautifulsoup, the < and > were converted to `<`and `>`, since the tag anchor were all converted, the whole soup lost its structure, any suggestion?