Invisible Unicode trick stops X from auto-linking domain names
A zero-width non-joiner placed after a domainβs final dot can keep X from turning it into a clickable link, Flavio Copes reports, though copied text becomes invalid and other parsers may behave differently.
TLDR
Flavio Copes reports that adding a zero-width non-joiner, Unicode U+200C, immediately after the last dot in a bare domain keeps X from turning it into a clickable link. He points to a Paul Graham post that Guillermo Rauch flagged on X and says the post returns no link entities from the X API. Copes ties the behavior to twitter-text, Xβs open-source parser, which accepts only ASCII letters, digits, hyphens and dots for bare domains ending in a known TLD; inserting U+200C breaks that pattern. He also shows the trick is fragile: put the character in the wrong place and X may still link a different valid domain, while copied text carries the hidden character and can become invalid in browsers and other parsers.
Combined views
707
1 Source, first seen 1h ago
