Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sjwright
· 12y ago · 0 comments
The question I have is, what's the easiest way to strip this 🅹🆄🅽🅺 out of unicode strings submitted by web users? With a nod to Cunningham's Law, surely the right answer is a regular expression?
Comments
[–]
atlbeer
12y ago
Depends on the language... but, the "correct" answer is support unicode and welcome yourself into a world of pain.
[–]
dsjoerg
12y ago
Glad you put "correct" in scare quotes, because that "correct" answer is certainly not correct.
[–]
NaNaN
12y ago
You can use “Adobe Blank”[1] and CSS @font-face{unicode-range:} to hide them.
[1]:
https://github.com/adobe-fonts/adobe-blank
[–]
TazeTSchnitzel
12y ago
So now the text won't show up at all?
Wonderful :/