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? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -