JSFiddle - React, Tailwind, and code Playground

by Iftakharul Alam

HTML

<input type="text" class="clean">

JavaScript

jQuery('.clean').keyup(function () { 
    this.value = this.value.replace(/[!`~$#%^*()=;:<>/?\[\]{}]/ig,'');
});