Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] convert_html_fragment: Don't wrap full XMLs
If the HTML string to convert is a fully XML compliant file including the header `<?xml version="...?>`, the wrapping process is breaking the final result, as the expected XML syntax doesn't include `?` in the middle and lxml returns a weird result `<?xml version="...??>` with 2 interrogations. With this commit, we are not wrapping if we detect the XML header.
- Loading branch information