I use CSS hyphenation (hyphens:auto;
) for text paragraphs on websites. Sometimes it happens that email addresses are hyphenated resulting in a 'wrong' domain name. Example:
john.doe@planungsteam.abc
becomes
john.doe@planungs-
team.abc
How would I prevent that behavior? As this is user generated content, there is no way to manually add html elements. I was thinking about parsing texts with JavaScript, adding special tags to email addresses and use hyphens:none;
on those tags. But I'm worried about performance.
(I think this is an issue especially with German text, where there are a lot of compound nouns)