我对正则表达式不是很好,但是使用PHP我想要style从TinyMCE中返回的字符串中删除HTML标签中的属性.
style
所以转变<p style="...">Text</p>为香草<p>Test</p>.
<p style="...">Text</p>
<p>Test</p>
我将如何通过preg_replace()功能实现这一目标?
preg_replace()
php regex tinymce
php ×1
regex ×1
tinymce ×1