title: How to remove emoji code using javascript?
body: <p>How do I remove emoji code using JavaScript? I thought I had taken care of it using the code below, but I still have characters like .</p>
  
  <pre class="lang-js prettyprint-override"><code>function removeInvalidChars() {
      return this.replace(/[\uE000-\uF8FF]/g, '');
  }
  </code></pre>