Reputation: 187
How can i clean my html output of double whitespaces and new lines but not modifing the ones in textarea and pre tags using php?
Upvotes: 1
Views: 697
Reputation: 401002
First of all, I would rather say : don't do this :
Still, if you really want to do that, you are probably looking for an HTML Minifier.
There are several tools that exist, to do that ; here are a couple of exemples :
{strip}
tagUpvotes: 3