Regex special char
HTML
<div id='output'></div>
JavaScript
var str = 'Mine !@#$% is Good for ^&*()_-+ for ?[]{}||\/';
$('#output').html(str.replace(/[`~!@#$%^&*()_|+\=?;:'",.<>\{\}\[\]\\\/]/gi, ''));
<div id='output'></div>
var str = 'Mine !@#$% is Good for ^&*()_-+ for ?[]{}||\/';
$('#output').html(str.replace(/[`~!@#$%^&*()_|+\=?;:'",.<>\{\}\[\]\\\/]/gi, ''));