Skip to content

Commit

Permalink
Add SMS to link protocol whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
Anish George authored and Anish George committed Nov 25, 2019
1 parent 0c3b286 commit f00b0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formats/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Link extends Inline {
Link.blotName = 'link';
Link.tagName = 'A';
Link.SANITIZED_URL = 'about:blank';
Link.PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel'];
Link.PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel', 'sms'];

function sanitize(url, protocols) {
const anchor = document.createElement('a');
Expand Down

0 comments on commit f00b0a7

Please sign in to comment.