kkreft
12/18/2012 - 1:52 PM

Remove inline style from HTML code. Does not work with a href.

Remove inline style from HTML code. Does not work with a href.

preg_replace('#(<[a-z ]*)(style=("|\')(.*?)("|\'))([a-z ]*>)#', '\\1\\6', $text);