import { describe, expect, it } from "vitest"; import { escapeHtml } from "./graphHtml"; describe("escapeHtml", () => { it("escapes entity and relation labels before the graph library renders HTML", () => { expect(escapeHtml(" & 'quoted'")).toBe( "<img src=x onerror="alert(1)"> & 'quoted'", ); }); });