preg replace - PHP remove eveything between style="" tags? -
i interesting in removing in between , including inline style tags output. example:
style="height:10px;"
the issue have been having is, found php replacement expressions work, removing paragraph tags , such.
any appreciated. thank you
try:
$html = preg_replace('%style="[^"]+"%i', '', $html);
Comments
Post a Comment