RegEx'in ile paragraf etiketleri dönüştürme

0 Cevap php

I need to replace all <p> tags with <br /> tags within a string. The problem is that the <p> tag can have attributes in it , such as <p align="center"> so I want to delete all occurrences of an opening tag of a paragraph, no matter what attributes are in it, and replace them with <br />.

Ben PHP kullanarak ve preg_replace fonksiyonu ile doğru ifade almak hiçbir başarı yoktu duyuyorum.

Herhangi bir yardım mutluluk duyacağız!

Joel

0 Cevap