From f181ecce95be3cdb0f8520121cd784be275998f9 Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 15 Apr 2024 03:30:50 -0400 Subject: [PATCH] there now the output is prettier --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index ed67119..cc1d00c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,11 +58,11 @@ async fn html( .map(|rec| { format!( r#" -
-
{}
-
{}
-
- "#, +
+
{}
+
{}
+
+"#, rec.id, html_escape::encode_text(&rec.name.unwrap_or("anonymous".to_owned())), html_escape::encode_text(&rec.content),