Я не слишком хорош с регулярными выражениями, но с PHP я хочу удалить атрибут style
из тегов HTML в строке, возвращающейся с TinyMCE.
Итак, измените <p style="...">Text</p>
на просто ваниль <p>Test</p>
.
Как мне достичь этого с помощью функции preg_replace()
?