PHP strip all non print characters except new lines
by fakie_flip from LinuxQuestions.org on (#52ZTK)
https://alvinalexander.com/php/how-t...-string-regex/
I'm trying to remove all non-printable ascii without removing new lines. The code above works except that it removes new lines also.


I'm trying to remove all non-printable ascii without removing new lines. The code above works except that it removes new lines also.