auto merge of #12737 : alexcrichton/rust/issue-12736, r=brson
Turns out sundown has already escaped this content for us, so there's no need for us to escape it again. Closes #12736
This commit is contained in:
commit
bd47f679fa
1 changed files with 1 additions and 2 deletions
|
|
@ -38,7 +38,6 @@ use std::vec;
|
|||
use collections::HashMap;
|
||||
|
||||
use html::highlight;
|
||||
use html::escape::Escape;
|
||||
|
||||
/// A unit struct which has the `fmt::Show` trait implemented. When
|
||||
/// formatted, this struct will emit the HTML corresponding to the rendered
|
||||
|
|
@ -198,7 +197,7 @@ pub fn render(w: &mut io::Writer, s: &str) -> fmt::Result {
|
|||
|
||||
// Render the HTML
|
||||
let text = format!(r#"<h{lvl} id="{id}">{}</h{lvl}>"#,
|
||||
Escape(s.as_slice()), lvl = level, id = id);
|
||||
s, lvl = level, id = id);
|
||||
text.with_c_str(|p| unsafe { bufputs(ob, p) });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue