fix: sanitize Org previews before trusting rendered HTML

This commit is contained in:
tdurieux
2026-09-06 10:46:44 +02:00
parent cf58aa330b
commit b2dfda1838
4 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -2961,7 +2961,7 @@ angular
suppressSubScriptHandling: true,
suppressAutoLink: false,
});
$scope.content = $sce.trustAsHtml(orgHTMLDocument.toString());
$scope.content = $sce.trustAsHtml(DOMPurify.sanitize(orgHTMLDocument.toString()));
$scope.type = "html";
}
if (
+1 -1
View File
File diff suppressed because one or more lines are too long