FIX - resolve CodeQL security alerts (#16)

This commit is contained in:
DerEchteAlec
2026-08-20 17:26:26 +02:00
committed by GitHub
parent 5b5e9fe914
commit 9aec3eefef
5 changed files with 38 additions and 5 deletions
+8
View File
@@ -47,4 +47,12 @@ describe('notes rich text', () => {
'Briefing\nMeet outside.\n• Radio\n• Vest',
)
})
it('keeps encoded markup as literal preview text', () => {
const body = serializeRichNoteBody(
'<p>&lt;script&gt;literal&lt;/script&gt;</p>',
)
expect(noteBodyToPlainText(body)).toBe('<script>literal</script>')
})
})