describe("sanitize", function(){ it("strips all script tags", function(){ sanitized = sanitizeHtml("
"); expect(sanitized) .toBe("
"); }); it("strips disallowed attributes", function(){ sanitized = sanitizeHtml("

hello

"); expect(sanitized) .toBe("

hello

"); }); });