From 7dd3d3c34cd93d6686b88a61205eaa0bd5e7fe5b Mon Sep 17 00:00:00 2001 From: Moshe Weitzman Date: Mon, 24 Apr 2023 10:23:04 -0400 Subject: [PATCH] Handle double ampersand in Usage example. --- src/AnnotatedCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AnnotatedCommand.php b/src/AnnotatedCommand.php index 320cae6..1d8b35f 100644 --- a/src/AnnotatedCommand.php +++ b/src/AnnotatedCommand.php @@ -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;