there now the output is prettier

This commit is contained in:
Erin 2024-04-15 03:30:50 -04:00
parent 14d2792bed
commit f181ecce95
Signed by: erin
SSH key fingerprint: SHA256:clvLPaxKthBet+VUQTKQdDkjaqg2/KnYHQaPASp5pFE

View file

@ -58,11 +58,11 @@ async fn html(
.map(|rec| { .map(|rec| {
format!( format!(
r#" r#"
<div class="comment" data-id="{}"> <div class="comment" data-id="{}">
<div class="comment__author">{}</div> <div class="comment__author">{}</div>
<div class="comment__content">{}</div> <div class="comment__content">{}</div>
</div> </div>
"#, "#,
rec.id, rec.id,
html_escape::encode_text(&rec.name.unwrap_or("anonymous".to_owned())), html_escape::encode_text(&rec.name.unwrap_or("anonymous".to_owned())),
html_escape::encode_text(&rec.content), html_escape::encode_text(&rec.content),