Как удалить более одного пробельного символа из HTML?

Я хочу удалить лишние пробелы, которые исходят от пользовательской части, но я не могу предсказать формат HTML.

Например:

<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>

Пожалуйста, объясните мне, как удалить из HTML более одного символа пробела.

Ответы на вопрос(3)

Ваш ответ на вопрос