Skip to content

Commit

Permalink
Usage of OUTPUT_RAW to avoid javascript syntax error when dumping HTM…
Browse files Browse the repository at this point in the history
…L API doc. Fixes issue nelmio#864.
  • Loading branch information
gmarchal committed Jun 10, 2016
1 parent 6d16486 commit 05d3a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/DumpCommand.php
Expand Up @@ -72,7 +72,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ('json' === $format) {
$output->writeln(json_encode($formattedDoc));
} else {
$output->writeln($formattedDoc);
$output->writeln($formattedDoc, OutputInterface::OUTPUT_RAW);
}
}
}

0 comments on commit 05d3a51

Please sign in to comment.