Skip to content

Commit

Permalink
Handle double ampersand in Usage example.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Apr 24, 2023
1 parent 6e113e7 commit 7dd3d3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AnnotatedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public function getExampleUsages()

public function addUsageOrExample($usage, $description)
{
$usage = htmlentities($usage);
$this->addUsage($usage);
if (!empty($description)) {
$this->examples[$usage] = $description;
Expand Down

0 comments on commit 7dd3d3c

Please sign in to comment.