diff --git a/server/src/lib.rs b/server/src/lib.rs index c67d982..91d2259 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -83,8 +83,9 @@ pub fn sanitize_html(html: &str) -> Result { } }; // Default's don't allow style, but we want to preserve that. - let attributes = - hashset!["align", "bgcolor", "color", "height", "lang", "title", "width", "style",]; + let attributes = hashset![ + "align", "bgcolor", "class", "color", "height", "lang", "title", "width", "style", + ]; let tags = hashset![ "a",