It would be really helpful if you could add an option to replace the urls with pure text. For example say in a system where a user has an option to allow links or redact them. And it would be great if you could pass in text that will be displayed with the redacted url.
E.g.
if( linksAllowed ){
var linkedText = autolinker.link( textToLinkOrRedact );
}
else{
var linkedText = autolinker.redact( textToLinkOrRedact, '[The link was removed]');
}
It would be really helpful if you could add an option to replace the urls with pure text. For example say in a system where a user has an option to allow links or redact them. And it would be great if you could pass in text that will be displayed with the redacted url.
E.g.
var linkedText = autolinker.link( textToLinkOrRedact ); } else{ var linkedText = autolinker.redact( textToLinkOrRedact, '[The link was removed]'); }