public void ImageNullBreaksUpXSSTest1()
{
// Arrange
DefaultHtmlSanitizer target = new DefaultHtmlSanitizer();
Dictionary<string, string[]> elementWhiteList = CreateElementWhiteList();
// Act
string htmlFragment = "perl -e 'print \"<IMG SRC=java\0script:alert(\"XSS\")>\";' > out";
string actual = target.GetSafeHtmlFragment(htmlFragment, elementWhiteList);
// Assert
string expected = "perl -e 'print \"<img src=\"java�:alert("XSS")\">\";' > out";
StringAssert.AreEqualIgnoringCase(expected, actual);
}