feat: update Event::Text

This commit is contained in:
PoiScript 2024-04-01 11:42:53 +08:00
parent e82adf92b7
commit 0d8ef46a38
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E
4 changed files with 5 additions and 5 deletions

View file

@ -274,7 +274,7 @@ impl Traverser for HtmlExport {
Event::Leave(Container::Link(_)) => self.output += "</a>",
Event::Text(text) => {
let _ = write!(&mut self.output, "{}", HtmlEscape(text.text()));
let _ = write!(&mut self.output, "{}", HtmlEscape(text));
}
Event::LineBreak(_) => self.output += "<br/>",