Add helper method to use implode() with HTML escaping
This commit is contained in:
@@ -9,6 +9,13 @@ use Kanboard\Model\UserModel;
|
||||
|
||||
class TextHelperTest extends Base
|
||||
{
|
||||
public function testImplode()
|
||||
{
|
||||
$textHelper = new TextHelper($this->container);
|
||||
$html = '<img src=x onerror=alert(0)>';
|
||||
$this->assertEquals($html, $textHelper->implode(', ', array('<img src=x onerror=alert(0)>')));
|
||||
}
|
||||
|
||||
public function testMarkdownTaskLink()
|
||||
{
|
||||
$textHelper = new TextHelper($this->container);
|
||||
|
||||
Reference in New Issue
Block a user