server: add ability to add/remove labels

This commit is contained in:
2024-04-03 21:07:06 -07:00
parent a24f456136
commit 1b196a2703
2 changed files with 24 additions and 1 deletions

View File

@@ -83,6 +83,8 @@ pub fn sanitize_html(html: &str) -> Result<String, SanitizeError> {
}
};
// Default's don't allow style, but we want to preserve that.
// TODO: remove 'class' if rendering mails moves to a two phase process where abstract message
// types are collected, santized, and then grouped together as one big HTML doc
let attributes = hashset![
"align", "bgcolor", "class", "color", "height", "lang", "title", "width", "style",
];