|
|
@@ -845,6 +845,11 @@ HTML;
|
|
|
$result = $this->Text->stripLinks($text);
|
|
|
$this->assertEquals($expected, $result);
|
|
|
|
|
|
+ $text = 'This <strong><a href="#">is</a></strong> a <a href="javascript:void(0)">test</a> text';
|
|
|
+ $expected = 'This <strong>is</strong> a test text';
|
|
|
+ $result = $this->Text->stripLinks($text);
|
|
|
+ $this->assertEquals($expected, $result);
|
|
|
+
|
|
|
$text = '<a<a h> href=\'bla\'>test</a</a>>';
|
|
|
$this->assertEquals('test', $this->Text->stripLinks($text));
|
|
|
|