--TEST-- Bug #35673 (formatOutput does not work with saveHTML). --SKIPIF-- --FILE-- This is the title'; $htmldoc = new DOMDocument(); $htmldoc->loadHTML($html); $htmldoc->formatOutput = true; echo $htmldoc->saveHTML(); ?> --EXPECT-- This is the title