Skip to content

Commit 73e5207

Browse files
committed
updating Dompurify syntax
1 parent c5f6a28 commit 73e5207

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/components/Records/Record/GeneralInfo/Description.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ export default {
5757
5858
const unsafe = md.render(capitalized || "");
5959
// Sanitize the generated HTML to avoid XSS.
60-
return DOMPurify.sanitize(unsafe, {
61-
// ALLOWED_URI_REGEXP: /^(?:(?:https?|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
62-
});
60+
return DOMPurify.sanitize(unsafe);
6361
},
6462
},
6563
};

0 commit comments

Comments
 (0)