forked from alemi/upub
fix(web): strip html from user bios
This commit is contained in:
parent
3abcd18c37
commit
9fb1392c6f
1 changed files with 6 additions and 1 deletions
|
@ -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! { <p>{x}</p> })
|
||||
.collect_view()
|
||||
}
|
||||
</p>
|
||||
<ul>
|
||||
<li><code>type</code>" "<b>{x.actor_type().unwrap_or(apb::ActorType::Person).as_ref().to_string()}</b></li>
|
||||
|
|
Loading…
Reference in a new issue