i want to add slashes to only double quotes to some html elements this is how i am doing , but its not working for me :
$str ="
<table class="body-wrap" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%; margin: 0; padding: 0;">
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;">
<td style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;">this is my test</td></tr></table> ";
this is my php function :
$str2 = addcslashes($str, '"');
i think that i have problems at the beginning of my string , i dont know how to declare :
$str =" or $str = '
both for me didnt work