/** * Test of getSanitizedHTML method of class Sanitizer. */ function testGetSanitizedHTML_03() { $san = ESAPI::getSanitizer(); $test3 = 'Test.<script>alert(document.cookie)</script>'; $result3 = $san->getSanitizedHTML('test', $test3, 100, false); $this->assertEquals('Test.', $result3); }