Sanitize html when linkifying plain text.
This commit is contained in:
parent
c59a883351
commit
0f1a60a348
@ -350,7 +350,7 @@ impl QueryRoot {
|
|||||||
Body::PlainText(PlainText { text, content_tree }) => Body::Html(Html {
|
Body::PlainText(PlainText { text, content_tree }) => Body::Html(Html {
|
||||||
html: format!(
|
html: format!(
|
||||||
r#"<p class="view-part-text-plain">{}</p>"#,
|
r#"<p class="view-part-text-plain">{}</p>"#,
|
||||||
linkify_html(&text)
|
sanitize_html(&linkify_html(&text))?
|
||||||
),
|
),
|
||||||
content_tree: if debug_content_tree {
|
content_tree: if debug_content_tree {
|
||||||
render_content_type_tree(&m)
|
render_content_type_tree(&m)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user