In a string like this one
Améliorer <span style="color:black;">mon authentification</span>
i'm trying to replace this
style="color:black;"
with
style= \ "color:black; \ "
i'm trying to use preg_replace like that
$result = preg_replace('/(<*[^>]*style=)"[^>]+"([^>]*>)/', '\1\"300\"\2', $data);
but in this way i only change the content of style attribute while the content should remains the same.
i've to change it only on style attribute because i need to keep some double quotes inside the string (so i can't str_replace)
Thanks