Skip to content

Commit 4f90422

Browse files
committed
Don't escape description/notes HTML
Signed-off-by: Nico Burns <[email protected]>
1 parent 68bfc79 commit 4f90422

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/section.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ pub fn Section(
3838
}
3939

4040
p { class: "group-description",
41-
if let Some(desc) = description {
42-
{desc}
43-
}
41+
dangerous_inner_html: description
4442
}
4543
{children}
4644
}

src/routes/crate_list.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ fn CrateListItem(krate: Crate) -> Element {
185185
<p style="margin: 3px 6px;max-width: 600px">
186186
<CrateLink href={main_href} label={krate.name} /> {doc_link}
187187
<br />
188-
{krate.notes}
188+
<span dangerous_inner_html={krate.notes} />
189189
</p>
190190
)
191191
}

0 commit comments

Comments
 (0)