I am not able to remove these " " from textarea using any of below method
Good job overall!
***********************************************************************
Soft skills: Please don\'t forget to ask customers for the reason of cancellation.
methods
$resolution = trim($resolution);
//Effort 2
$resolution = nl2br($resolution);
//Effort 3
$resolution = htmlentities($resolution);
//Effort 4
$resolution = preg_replace("\\
","<br>",$resolution);
$snip = str_replace("\t", '', $snip); // remove tabs
$snip = str_replace("
", '', $snip); // remove new lines
$snip = str_replace("", '', $snip); // remove carriage returns
Array
( [0] => Array ( [field_id] => 5497 [type] => F [parent_id] => 0 [field_type] => selectbox [field_name] => Retention Offered? [required] => 1 [maxlength] => 0 [field_value] => YES [not_applicable] => on )
[1] => Array
(
[field_id] => 5494
[type] => F
[parent_id] => 0
[field_type] => textarea
[field_name] => Summary of Interaction
[required] => 1
[maxlength] => 0
[field_value] => Cx requested cancel, agent secured and explained account, offered rates, cx declined, agent confirmed cancellation
[not_applicable] => on
)
[2] => Array
(
[field_id] => 5495
[type] => F
[parent_id] => 0
[field_type] => textarea
[field_name] => Feedback
[required] => 0
[maxlength] => 0
[field_value] => Good job overall!
***********************************************************************
Soft skills: Please don\'t forget to ask customers for the reason of cancellation.
[not_applicable] => on
)
)
user preg_replace, To remove from a string, follow the below code
$title = "Good job overall!
***********************************************************************
Soft skills: Please don't forget to ask customers for the reason of cancellation";
$new_title = preg_replace("/[
]/","",$title);
echo $new_title;
I done this using below code , ( '\t', ' ', '' ) just used single quotes instead of double quotes
$snip = str_replace('\t', '', $snip); // remove tabs
$snip = str_replace('
', '', $snip); // remove new lines
$snip = str_replace('', '', $snip); // remove carriage returns