1
0
Fork 0
forked from alemi/upub

fix(web): strip html from user bios

This commit is contained in:
əlemi 2024-04-16 08:22:52 +02:00
parent 3abcd18c37
commit 9fb1392c6f
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -229,7 +229,12 @@ pub fn UserPage() -> impl IntoView {
x.image().get().map(|x| x.url().id().unwrap_or_default()).unwrap_or_default() 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! { <p>{x}</p> })
.collect_view()
}
</p> </p>
<ul> <ul>
<li><code>type</code>" "<b>{x.actor_type().unwrap_or(apb::ActorType::Person).as_ref().to_string()}</b></li> <li><code>type</code>" "<b>{x.actor_type().unwrap_or(apb::ActorType::Person).as_ref().to_string()}</b></li>