4 ms·
I’ve found the exact opposite. BSoup will choke on invalid tags in the DOM, such as: <div id=“content”><content>…</content></div> If I try to return the innerH
by sudont 15y ago
I’ve found the exact opposite. BSoup will choke on invalid tags in the DOM, such as: <div id=“content”><content>…</content></div>
If I try to return the innerHTML of #content, I get '<div id=“content”><content>’ as a string, nothing else.
While I know that’s inexcusable markup, it’s nothing I have control over.
lxml (if it builds on the target system) has been much better for my scripts.