4 ms·
Please do some unicode sanitising on user input. so we don't get Ě̼͔̠͈̯̲̪̻̦͔ͯ̎̿̊̂̈́̃̈́̓̇̾̏̉ͅͅ ̜̤̜̱̪̥̟͎͖̘͖̫ͭ̇́̀͒͗̋ͧ̊ͨB̙̰͕̠̺͈̭̦͈̺̫̖̘̥̝̞̗͋̌̓̊͊ͦ͋ͫͅI̞̻̻̘̭̗͎̻̟ͣ͛̈́̾́̈
by deepstack 6y ago
Please do some unicode sanitising on user input. so we don't get
Ě̼͔̠͈̯̲̪̻̦͔ͯ̎̿̊̂̈́̃̈́̓̇̾̏̉ͅͅ ̜̤̜̱̪̥̟͎͖̘͖̫ͭ̇́̀͒͗̋ͧ̊ͨB̙̰͕̠̺͈̭̦͈̺̫̖̘̥̝̞̗͋̌̓̊͊ͦ͋ͫͅI̞̻̻̘̭̗͎̻̟͍͔̦͎̠͇̤̜͔ͣ͛̈́̾́̈G̟͇̻̩͍̹͓͖̥͈̮͍̾ͫ̌ͬͬ̓̇ͭͅ ̮̯̙̩͎̓ͣ̔͂̏ͩ̓ͅB͈͈̫͖̰͉̠̟̲͎͌̐̉ͥ̓̅ͣ͊̅̆ͫ͗A̠̦͓̮̦͎̥͎͎̼͍̜̪͇̙̦͍ͫͫ̾ͩ̋ͦ̐ͩ͌̇̓̀̋͋ͣ̉͊L͓̳̦̟̓̿ͯ̀ͫ͗̓̊͊ͭͭ͛ͦ̀̐̚L̞̝̳̯̘͓̞̝͇̯͔̮͓͋̊̾̇͂̊̏͒̉̄̔̊S̥͎̝̟̩͎̜̦̼̫̭̯̿͋͛ͬ́̚.͔͚͕̥̬̰̺̹̞̹͕̖̜̬̼̺͖͛ͫ̇̌̓̍̃ͣ͒́͂̑ͫ ̘̪̹̼̟̪̘͍͍̖̠̭̘̣̅̂ͧͤ̑I̭̱̙͇͍͚̯̖̫̰̩͔͔̱̓ͣ̀͆͒͒ͭ̊ ̣̰͔̘̳̲͖̫̲̩̔ͩͣ̑̓̈̇̐ͫͥ̑̈͂͗͌̌̎͗̽H͍̜̠͙̗̭̖͔̝̰͋ͭ̐͆́ͣA͎̤̯̖̞̲͉͕̫̻̼͙̼͕̎̈ͫ͑ͫ̏̏V̮͓̲͚̗̯̗̞̪͈̮ͪ̒̅ͤ͆ͧ̅̒̉̇ͣ̔ͧ͒̍ͩͅE͉̠͖ͫ̀ͦ̎̌ͤ͗ͭͣ̒͑͑̚ ̹̞̻̜̯̫̲̥͈̹̺͖͈̤̺͎͗̒ͯͮ̃͗̋̒ͭͯ̈́̈́ͧ̓ͨ̃̿B̙͕̞͎̝̱̝͎̦̂̈́ͪ͂͌̚ͅͅÎ̥̜̟̪̝̝̘̪̫̫̪̫̩͖͚̑̈́ͪ́̔͛͊G̲̳̬͛͐͊̚ ̙̺̬̖̦͉͙͉̰̲ͣ͂̀ͮB͕̙̩͖̗̼̼̜̝̩͕̲̹̗̰͆̉̎̊͆ͥ̊̿ͭ̓̃͐̑ͅͅÄ̰̩͕̲̝͕̱̬̼̳͕͉̣́̌̔͐͗ͫ͛̅L̻̣̳̖̒ͬ̄̂̋̑̇ͩ͊L̖̟̙͙̪̱͕̱̝͈͔̺͒̌̏͆̍̂͌̅̃ͩ̏͆͒̃̔ͭŜ͖̦̙̱̙̘̜̝̑ͥ̔̑ͯͨ.͓̠͕͔̹̬̬͋̋̈́̄̓̈́ͧͦ̎͐̃ͨ̆͛̚̚ ͕̝̭̬̉̆͋͆̋͂ͬͦ̚
3console-chat-min.js:1 thename @www.consolechat.
- michaelmior 6y agoNot the OP, but any suggestions on libraries/algorithms for doing so? Seems like if you want to support a wide range of languages, you have to be careful how you do this.
- kevincox 6y agoWhy? If this is the worst thing that people are posting in your chat you should consider yourself lucky.