feat: update Event::Text
This commit is contained in:
parent
e82adf92b7
commit
0d8ef46a38
4 changed files with 5 additions and 5 deletions
|
|
@ -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/>",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue