Reason; you can have multiple domains for a single project or trusted(partner) domains. So here is a option for excluding missing. I have modify multiple files in \library\HTMLPurifier\AttrTransform* and \library\HTMLPurifier\AttrTransform.php itself.
I never make a pull request, but when you have interest in this option, I will try it.
I have added a whitelist option to htmlpurifer with and wihout a tld
$config->set('HTML.TargetWhitelist', array('domain1.de','domain2.'));
Reason; you can have multiple domains for a single project or trusted(partner) domains. So here is a option for excluding missing. I have modify multiple files in \library\HTMLPurifier\AttrTransform* and \library\HTMLPurifier\AttrTransform.php itself.
I never make a pull request, but when you have interest in this option, I will try it.