Skip to content

Commit 6d611e1

Browse files
authored
Allow more URI schemes
Allow mailto and tel.
1 parent 21f355a commit 6d611e1

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)