How to stop CKEditor producing \r\n characters automatically when data is sanitized in PHP?
问题 I am having a problem regarding data coming from CKEditor textarea field. I am using CKEditor 4.4.1 . Whenever I try to submit the content of CKEditor it generates characters \r\n again and again. But it happening only when I am sanitizing my incoming data. Here is my function which sanitizes the incoming content - // filter user input public function filter_data($input) { // if magic quotes are on if(get_magic_quotes_gpc()) { $input = stripslashes($input); } $sanitized_data = mysqli_real