diff --git a/src/lib/clean-pdf/__tests__/template.test.ts b/src/lib/clean-pdf/__tests__/template.test.ts index 2a74221..d97829c 100644 --- a/src/lib/clean-pdf/__tests__/template.test.ts +++ b/src/lib/clean-pdf/__tests__/template.test.ts @@ -42,6 +42,14 @@ describe("buildCleanHtml", () => { expect(new Set(ids).size).toBe(3); }); + it("вырезает script и inline-обработчики из контента", () => { + const html = buildCleanHtml({ ...base, contentHtml: `

t

x` }); + expect(html).not.toContain("