Ich suche nach Weg, um alle HTML-Tags zu löschen / löschen sie haben nichts ...
Beispielsweise:
<p></p><div> to make links</div><b> </b>
<a href="http://foo.com"></a><p> for linebreak add 2 spaces at end
</p><strong></strong><i></i>
Zu:
<div> to make links</div><p> for linebreak add 2 spaces at end</p>
// Ich bin mir sicher, dass es kein Duplikat ist.
<[^>]*>\s*<\/[^>]*>
Versuchen Sie das. Dies wird leere Tags entfernen. Siehe Demo.