alert("evil!");',
'<script>alert("evil!");</script>',
],
[
new HtmlArmor( '' ),
'',
],
];
}
/**
* @dataProvider provideHtmlArmor
*/
public function testHtmlArmor( $input, $expected ) {
$this->assertEquals(
$expected,
HtmlArmor::getHtml( $input )
);
}
}