We are migrating from sanitize-html module which has a feature to only allow links with allowed schemes like http, https, mailto, tel, and sms. That would be an awesome feature to have here.
@amit777 , I had a similar need and came across this solution that is very easy to implement with a regex that tests for the schemes you're looking for.
We are migrating from sanitize-html module which has a feature to only allow links with allowed schemes like http, https, mailto, tel, and sms. That would be an awesome feature to have here.