import { describe, expect, it } from "vitest"; import html_sanitizer from "./html_sanitizer.js"; import { trimIndentation } from "../../spec/support/utils.js"; describe("sanitize", () => { it("filters out position inline CSS", () => { const dirty = `
`; const clean = ``; expect(html_sanitizer.sanitize(dirty)).toBe(clean); }); it("keeps inline styles defined in CKEDitor", () => { const dirty = trimIndentation`\Hi there
Hi there