Skip to content

Commit c1b79ce

Browse files
authored
Merge pull request #46 from rendom/patch-1
Allow more URI schemes
2 parents 21f355a + 6d611e1 commit c1b79ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EditorJS/BlockHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ private function getDefaultPurifier()
254254
$sanitizer = \HTMLPurifier_Config::createDefault();
255255

256256
$sanitizer->set('HTML.TargetBlank', true);
257-
$sanitizer->set('URI.AllowedSchemes', ['http' => true, 'https' => true]);
257+
$sanitizer->set('URI.AllowedSchemes', ['http' => true, 'https' => true, 'mailto' => true, 'tel' => true]);
258258
$sanitizer->set('AutoFormat.RemoveEmpty', true);
259259
$sanitizer->set('HTML.DefinitionID', 'html5-definitions');
260260

0 commit comments

Comments
 (0)