Forums
(@agentpavel)
10 years, 6 months ago
I’ve just changed the pattern: $return = preg_replace('s/\<div([^>]*)((id|class)="em-(.*?)")([^>]*)\>(.*?)\<\/div\>/g', '', $return);
$return = preg_replace('s/\<div([^>]*)((id|class)="em-(.*?)")([^>]*)\>(.*?)\<\/div\>/g', '', $return);