JSFiddle - React, Tailwind, and code Playground

JavaScript

function removeSplChars(inStr) {
    inStr = inStr.replace(/[^a-zA-Z0-9 ]/g, "");
    return inStr;
}

document.write(removeSplChars('(® ´ © ¿ !@#$^&%*()+=-[]\/{}|:¡ ° À ) special characters in javascript?'));