mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-08 23:26:39 +02:00
tel protocol support.
This commit is contained in:
committed by
Edward Z. Yang
parent
a11aeab4a6
commit
cc35c8eb8c
@@ -172,6 +172,42 @@ class HTMLPurifier_URISchemeTest extends HTMLPurifier_URIHarness
|
||||
);
|
||||
}
|
||||
|
||||
public function test_tel_strip_punctuation()
|
||||
{
|
||||
$this->assertValidation(
|
||||
'tel:+1 (555) 555-5555', 'tel:+15555555555'
|
||||
);
|
||||
}
|
||||
|
||||
public function test_tel_regular()
|
||||
{
|
||||
$this->assertValidation(
|
||||
'tel:+15555555555'
|
||||
);
|
||||
}
|
||||
|
||||
public function test_tel_with_extension()
|
||||
{
|
||||
$this->assertValidation(
|
||||
'tel:+1-555-555-5555x123', 'tel:+15555555555x123'
|
||||
);
|
||||
}
|
||||
|
||||
public function test_tel_no_plus()
|
||||
{
|
||||
$this->assertValidation(
|
||||
'tel:555-555-5555', 'tel:5555555555'
|
||||
);
|
||||
}
|
||||
|
||||
public function test_tel_strip_letters()
|
||||
{
|
||||
$this->assertValidation(
|
||||
'tel:abcd1234',
|
||||
'tel:1234'
|
||||
);
|
||||
}
|
||||
|
||||
public function test_data_png()
|
||||
{
|
||||
$this->assertValidation(
|
||||
|
Reference in New Issue
Block a user