/*global waitsFor:true expect:true describe:true beforeEach:true it:true sanitizeHtml:true */ describe("sanitize", function(){ it("strips all script tags", function(){ var sanitized = sanitizeHtml("
"); expect(sanitized).toBe("
"); }); it("strips disallowed attributes", function(){ var sanitized = sanitizeHtml("

hello

"); expect(sanitized).toBe("

hello

"); }); });