2 ms·
I imagine cutting off "weird unicode" won't be too hard. For English, it's super-easy - just leave ASCII with letters, numbers, punctuation, etc., cut the rest.
by smsm42 12y ago
I imagine cutting off "weird unicode" won't be too hard. For English, it's super-easy - just leave ASCII with letters, numbers, punctuation, etc., cut the rest. For languages with more complex characters it will require some whitelisting I guess, and smart code to disallow stacking diacritics, etc. Sounds quite possible, I wouldn't be surprised if such libraries already existed.
- riquito 12y agoAnd then you'll not be able to quote foreign text. Ban the user if he misbehave, not the language