Reputation: 451
I'm trying to parse and prettify a bunch of files made with Microsoft FrontPage.
Beautifulsoup parses them with no problem, but when I try to print the output with prettify()
,
tags like <meta>
or <br>
are rewritten as <meta ... />
and <br/>
.
Is there a way to force HTML output?
Upvotes: 4
Views: 2496
Reputation: 1121306
No, there is no way to force the .prettify()
method to not output XHTML-compliant HTML.
Upvotes: 2