Update `EscapeWriter` HTML implementation to not output empty strings
@@ -129,7 +129,11 @@ impl Escaper for Html {
}
}
}
+ if start < bytes.len() {
fmt.write_str(unsafe { str::from_utf8_unchecked(&bytes[start..]) })
+ } else {
+ Ok(())
+ }
}
}
