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# - SharpSVN - How to get the previous revision? -

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

url - Querystring manipulation of email Address in PHP -