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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -