'), '
')
assert_equal(HtmlSanitizer.strict('
test'), '
test')
assert_equal(HtmlSanitizer.strict('
test'), '
test')
assert_equal(HtmlSanitizer.strict('
test', true), '
test')
assert_equal(HtmlSanitizer.strict('
'), '
')
assert_equal(HtmlSanitizer.strict('
'), '')
assert_equal(HtmlSanitizer.strict('
+ADw-SCRIPT+AD4-alert(\'XSS\');+ADw-/SCRIPT+AD4-'), ' +ADw-SCRIPT+AD4-alert(\'XSS\');+ADw-/SCRIPT+AD4-')
assert_equal(HtmlSanitizer.strict(''), '')
assert_equal(HtmlSanitizer.strict('
XSS'), '
XSS')
assert_equal(HtmlSanitizer.strict('
XSS', true), '
XSS')
assert_equal(HtmlSanitizer.strict('
XSS'), '
XSS')
assert_equal(HtmlSanitizer.strict('
XSS', true), '
XSS')
assert_equal(HtmlSanitizer.strict('
'), 'X')
assert_equal(HtmlSanitizer.strict('
CLICKME'), 'CLICKME')
assert_equal(HtmlSanitizer.strict('
CLICKME'), 'CLICKME')
assert_equal(HtmlSanitizer.strict('
CLICKME', true), 'CLICKME')
assert_equal(HtmlSanitizer.strict('
'), '
')
assert_equal(HtmlSanitizer.strict('
'), '
')
assert_equal(HtmlSanitizer.strict('
'), '')
assert_equal(HtmlSanitizer.strict('
'), '')
assert_equal(HtmlSanitizer.strict(''), '')
assert_equal(HtmlSanitizer.strict(''), '')
assert_equal(HtmlSanitizer.strict(''), '')
assert_equal(HtmlSanitizer.strict('XXX'), 'XXX')
assert_equal(HtmlSanitizer.strict('XXX', true), 'XXX')
assert_equal(HtmlSanitizer.strict(''), 'alert(1)')
assert_equal(HtmlSanitizer.strict(''), '')
assert_equal(HtmlSanitizer.strict('', true), '')
assert_equal(HtmlSanitizer.strict(''), '')
end
end