there now the output is prettier
This commit is contained in:
parent
14d2792bed
commit
f181ecce95
10
src/main.rs
10
src/main.rs
|
@ -58,11 +58,11 @@ async fn html(
|
|||
.map(|rec| {
|
||||
format!(
|
||||
r#"
|
||||
<div class="comment" data-id="{}">
|
||||
<div class="comment__author">{}</div>
|
||||
<div class="comment__content">{}</div>
|
||||
</div>
|
||||
"#,
|
||||
<div class="comment" data-id="{}">
|
||||
<div class="comment__author">{}</div>
|
||||
<div class="comment__content">{}</div>
|
||||
</div>
|
||||
"#,
|
||||
rec.id,
|
||||
html_escape::encode_text(&rec.name.unwrap_or("anonymous".to_owned())),
|
||||
html_escape::encode_text(&rec.content),
|
||||
|
|
Loading…
Reference in a new issue