Fix sanitise html warning about unsafe tags (#10384)
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ export function stripHTMLReply(html: string): string {
|
|||||||
return sanitizeHtml(html, {
|
return sanitizeHtml(html, {
|
||||||
allowedTags: false, // false means allow everything
|
allowedTags: false, // false means allow everything
|
||||||
allowedAttributes: false,
|
allowedAttributes: false,
|
||||||
allowVulnerableTags: false, // silence xss warning, we won't be rendering directly this, so it is safe to do
|
allowVulnerableTags: true, // silence xss warning, we won't be rendering directly this, so it is safe to do
|
||||||
// we somehow can't allow all schemes, so we allow all that we
|
// we somehow can't allow all schemes, so we allow all that we
|
||||||
// know of and mxc (for img tags)
|
// know of and mxc (for img tags)
|
||||||
allowedSchemes: [...PERMITTED_URL_SCHEMES, "mxc"],
|
allowedSchemes: [...PERMITTED_URL_SCHEMES, "mxc"],
|
||||||
|
|||||||
Reference in New Issue
Block a user