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?
No, there is no way to force the .prettify() method to not output XHTML-compliant HTML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With