mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(notifications): sanitize notification text by removing unknown tags so attribute noise doesn’t appear in rendered messages
This commit is contained in:
@@ -823,8 +823,8 @@ Singleton {
|
||||
// Preserve valid HTML tag
|
||||
result += part;
|
||||
} else {
|
||||
// Unknown tag: strip brackets and escape inner content
|
||||
result += escapeHtml(content);
|
||||
// Unknown tag: drop tag without leaking attributes
|
||||
result += "";
|
||||
}
|
||||
} else {
|
||||
// Normal text: escape everything
|
||||
|
||||
Reference in New Issue
Block a user