protected function eliminateWhitespaceBetweenHtmlTags($content) { $content = trim(preg_replace('/>\\s+</', '><', $content)); return $content; }