Jump to content

Remove span tags that have font family declaration


brianlange

Recommended Posts

My version is smarter but more complicated.

$note = one two three 
four
END;

do $note = preg_replace('#]+style="[^"]*font-family:[^"]*"[^>]*>(([^#is', '$1', $oldnote = $note);
while ($oldnote != $note);

echo $note;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.