html: Don't check end names

Flash permits mismatched closing tags (e.g. `<mytag></different_tag>`),
so turn-off this check.
This commit is contained in:
relrelb 2021-12-17 14:29:27 +02:00 committed by relrelb
parent 5d81a0ce64
commit 7e20543578
1 changed files with 1 additions and 0 deletions

View File

@ -583,6 +583,7 @@ impl FormatSpans {
};
let mut reader = Reader::from_reader(&raw_bytes[..]);
reader.check_end_names(false);
let mut buf = Vec::new();
loop {
match reader.read_event(&mut buf) {