I eliminate whitespace with the following PHP code:
preg_replace(['/\t+/', '/>\s+</'], [' ', '><'], $html);
I eliminate whitespace with the following PHP code: