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