Skip to content

Commit 9bac49c

Browse files
Remove style tags from command description
Previously this was the case for list --raw strip_tags is used there too https://github.com/symfony/console/blob/master/Descriptor/TextDescriptor.php#L248
1 parent ca2dc6c commit 9bac49c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DumpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
9292
foreach ($xml->xpath('/symfony/commands/command') as $xmlCommand) {
9393
$command = (string) $xmlCommand['name'];
9494
$commands[] = $command;
95-
$commandsDescriptions[$command] = !empty($xmlCommand->description) ? $xmlCommand->description : null;
95+
$commandsDescriptions[$command] = !empty($xmlCommand->description) ? strip_tags($xmlCommand->description) : null;
9696
$commandsOptionsDescriptions[$command] = array();
9797
$commandOptions = array();
9898
foreach ($xmlCommand->xpath('options/option') as $commandOption) {

0 commit comments

Comments
 (0)