From 05d3a512591771586e10dd215a63f81f0b4d3afb Mon Sep 17 00:00:00 2001 From: gmarchal Date: Fri, 10 Jun 2016 10:47:43 +0200 Subject: [PATCH] Usage of OUTPUT_RAW to avoid javascript syntax error when dumping HTML API doc. Fixes issue #864. --- Command/DumpCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/DumpCommand.php b/Command/DumpCommand.php index a4ab80d67..a25628ec7 100644 --- a/Command/DumpCommand.php +++ b/Command/DumpCommand.php @@ -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); } } }