php str_replace: how to replace ALL symbols except a-zA-Z0-9, \, /, ., ,, ', @, !,...

NumNoum

New member
...\r\n, with a space? The question is to remove all suspicious symbols from html <textarea>some bad text here</textarea> to display it as a static text on the next page. Also the problem is that Enter will be displayed as \r\n so that variable $temp_str should have probably this string as well:
temp_str=str_replace("\r\n","<br/>", $temp_str);

Thank you.
 
Back
Top