I have a form that displays a table containing email addresses, and I would like to hint to the browser that the email address can wrap the line to @ ; ex, so somelongemail@somelargedomain.com will be migrated to somelongemail<break>@somelargedomain.com .
The βstandardβ solution seems to represent zero-width space , but this will cause problems if someone tries to copy + paste the email address (i.e. because they will paste the email address example<zero-width-space>@example.com , which is not a reasonable email address).
How can I make hints for word wrapping without breaking copy and paste?
For instance:
table { border: 1px solid grey; width: 50px; margin-bottom: 10px; border-spacing: 0; border-collapse: collapse; } td { border: 1px solid grey; }
<table> <tr><td>without any break hints</td><td> somelongemail@domain.com </td></tr> </table> <table> <tr><td>with a zero-width space</td><td>somelongemail​@domain.com</td></tr> </table>
source share