/* @vitest-environment jsdom */ // shared/render-sanitize.js 规则测试 // // 覆盖: // 1. XSS 防护:'); expect(html).not.toMatch(/)'); expect(html).not.toMatch(/href="data:text\/html/i); }); it(''); expect(html).not.toMatch(/