Reputation: 38
I'm creating a simple chat application and I wonder if there is a simple way of "sanitizing" user chats to prevent the use of crazy fonts...
Ñ̵̩͕͝ä̸̧̧̬̯́̀̊̅͌̋̃̕͝m̷̛̛̦͍̠͕͍̈̇͂̽̆͛̿͆ę̸̡̡̙͎́̎̑̕l̴̛̝͚̪̂̓̓̅̈́̃͑y̴͍̑̔͑̚ͅ,̵͇̠͎̻͇͗̈̾̍̈͑̏̿͝ ̷̡̨̱͍̣̣̱̜̈͑̀s̸̗͖̻̦̭͙̙͇̼̜͋͑̀̿̇̽̊t̴̞̟̭̞͇͙͙̝̻͆͋̅͂ű̷̢̮̥̦̥̼̮̙̹͘͝p̸̡̧̻͓͛̒͒́̚͠͠i̵͈͖͕̯̜̮̰͚̥̩͋̊͋̈́d̶̛͚̹̜̙̹̏̎̑̚͝ ̶̛̙͔̦͚̠̦̹̋͆̚͝f̸͚̭̙͓͇̪̅͊͊͌̇͜o̷̫̝̳̼͑͊̋̊̏̚͜͝ṋ̵̆͐̀͛̈́̇̀̑̚͘ţ̶̧͖̮͙̗̗̱͙͛̇̚ ̶̨̡̧́́͒̏͜t̴̮͂͊̍̈͂́͠ͅȑ̶̝̥͖̫͔̯̥̭̹̔̆ͅì̵͕̟̏̓̀̄̆̈́̕̚c̸̡̨̺̯̼̀̀k̷̻͕̒̍̅̂̄̄̍͆s̸̨̤̥͙͇̯͇̬̒̄͝ ̵̛̫̹͈̠̞̩̗̲̘̇̆͝l̶̨̰̈́̃̂ḯ̴̝̣̤ͅk̵͚͙̖͙̩̤̿̋͛̿̎̽͊̒̈̕e̸͖̣̘̟͐̈́̀͑̄̊͒̒͝ ̶̡̬̜͒͂̓͗̓̓̚t̴̛̛͕̗͔͍͋͊̍͆̚͝h̵̡̧̧̨̧̗͍͍͕̦̀͐̇̉̓̈́̚ì̶̢̳̠̤̖̝̝͙̦̟̈́̍̇͘͝s̴̯͝
Is there a good way of going about this?
Upvotes: 0
Views: 43