From 9fb1392c6fada5bb48fe1abe05fe9b726867d463 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 16 Apr 2024 08:22:52 +0200 Subject: [PATCH] fix(web): strip html from user bios --- web/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/lib.rs b/web/src/lib.rs index 4058d571..85856528 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -229,7 +229,12 @@ pub fn UserPage() -> impl IntoView { x.image().get().map(|x| x.url().id().unwrap_or_default()).unwrap_or_default() )} > - {x.summary().unwrap_or("").to_string()} + { + dissolve::strip_html_tags(x.summary().unwrap_or("")) + .into_iter() + .map(|x| view! {

{x}

}) + .collect_view() + }