Wie entferne ich mehr als ein Leerzeichen aus HTML?

Ich möchte zusätzliches Leerzeichen entfernen, das vom Benutzer kommt, kann aber das HTML-Format nicht vorhersagen.

Zum Beispiel:

<p> It's interesting that you would try cfsetting, since nothing in it's
documentation would indicate that it would do what you are asking.
Unless of course you were mis-reading what "enableCFoutputOnly" is
supposed to do.


</p>



<p>



It's interesting that you would try cfsetting, since nothing in it's
documentation would indicate that it would do what you are asking.
Unless of course you were mis-reading what "enableCFoutputOnly" is
supposed to do.</p>

Bitte leiten Sie mich, wie Sie mehr als ein Leerzeichen aus HTML entfernen.

Antworten auf die Frage(3)

Ihre Antwort auf die Frage