title: How to sanitize JS and HTML in inputs?
body: <p>I have looked everywhere, but cannot find a simple library or tool for this.</p>
  
  <p>I would like to sanitise comments on my website.</p>
  
  <p>Currently, I can inject HTML, CSS and pretty much whatever I want through comments.</p>
  
  <pre><code>&lt;div id="commentsSection"&gt;
      &lt;div class="submitCommentForm"&gt;
          &lt;textarea id="commentsInput" required minlength="10" maxlength="150"&gt;
          &lt;/textarea&gt;
          &lt;div id="submitComment"&gt;SUBMIT&lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="commentsBox"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What is the best available method ?</p>