$this->assertPattern('/<ahref="mailto:nobody@roundcube.net"onclick="return rcmail.command\(\'compose\',\'nobody@roundcube.net\',this\)">nobody@roundcube.net<\/a>/', $html, "Mailto links with onclick");
$this->assertPattern('/<ahref="mailto:nobody@roundcube.net"onclick="return rcmail.command\(\'compose\',\'nobody@roundcube.net\',this\)">nobody@roundcube.net<\/a>/', $html, "Mailto links with onclick");
$this->assertPattern('#<ahref="http://www.apple.com/legal/privacy/"target="_blank">http://www.apple.com/legal/privacy/</a>#', $html, "Links with target=_blank");
$this->assertPattern('#<ahref="http://www.apple.com/legal/privacy/"target="_blank">http://www.apple.com/legal/privacy/</a>#', $html, "Links with target=_blank");
$this->assertPattern('#\\[<ahref="http://example.com/\\?tx\\[a\\]=5"target="_blank">http://example.com/\\?tx\\[a\\]=5</a>\\]#', $html, "Links with square brackets");