\s*?\n<", trim($expectedHtml)); return preg_replace('/\s*?>/', '>', $expectedHtml); } }