Hello Adam Gatt,
Welcome to Microsoft Q&A and thank you for reaching out.
You’re correct when both Email and Url are included in the piiCategories array, the visible email text is redacted, but the underlying mailto: hyperlink can still expose the email address when hovering. This occurs because the current redaction process primarily targets visible content rather than embedded hyperlink metadata.
Here are some recommendations to address this:
Ensure your redaction setup targets not only the visible email addresses but also any associated hyperlinks. Some configurations or additional flags may be required to remove hyperlinks entirely alongside the PII.
Confirm that your piiCategories array is correctly configured. Review the documentation for any specific steps or settings that help completely remove hyperlinks associated with redacted PII.
As a workaround, consider sanitizing or removing hyperlinks from the document before applying PII redaction. This helps ensure both the visible email text and mailto: links are removed.
We recommend logging this scenario as a product improvement request. Future updates may enhance redaction capabilities to remove hyperlink metadata along with visible PII.
Please refer this Conversational PII General Availability
Learn about Conversational PII
List of PII entities supported
I Hope this helps. Do let me know if you have any further queries.
Thank you!