SyntaxFix
Write A Post
Hire A Developer
Questions
I'm using such thing to clean-up the style='...' section out of tags with keeping of other attributes at the moment.
$output = preg_replace('/<([^>]+)(\sstyle=(?P<stq>["\'])(.*)\k<stq>)([^<]*)>/iUs', '<$1$5>', $input);