Hi.
I've got this php code
Code PHP:protected function sanatizeInputValue($value) { $dodgychars = "#[|\!\"'\$£%&\/()=?^<>\*\+\-]#"; $filterValue = preg_replace($dodgychars,"-",$value); return substr($filterValue,0,255); }
How can I tanslate this in js code
I tried but with very poor result
can you show me the way, please ?
Bye







Bookmarks