title: Implement bad word filter in to my input in html?
body: <p>I plan on putting this list of bad words (<a href="https://github.com/shutterstock/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words/blob/master/en" rel="nofollow">https://github.com/shutterstock/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words/blob/master/en</a>) into a .txt file on my web server. How can I this javascript check the variable "userNickName" against the .txt file named "blacklist.txt" on my web server.</p>
  
  <p>(This is the code I want the bad word check implemented on, how would I do that?)</p>
  
  <pre><code>if (wsIsOpen() &amp;&amp; null != userNickName) {
    var msg = prepareData(1 + 2 * userNickName.length);
    msg.setUint8(0, 0);
    for (var i = 0; i &lt; userNickName.length; ++i) msg.setUint16(1 + 2 * i, userNickName.charCodeAt(i), true);
    wsSend(msg)
  </code></pre>