diff --git a/app/Draft/Name.php b/app/Draft/Name.php index 71d5942..2ac699f 100644 --- a/app/Draft/Name.php +++ b/app/Draft/Name.php @@ -12,7 +12,7 @@ public function __construct(?string $submittedName = null) { if($submittedName == null || trim($submittedName) == '') { $this->name = $this->generate(); } else { - $this->name = htmlentities(trim($submittedName)); + $this->name = htmlentities(html_entity_decode(trim($submittedName))); } } @@ -47,4 +47,4 @@ protected function generate(): string return 'Operation ' . ucfirst($adjectives[rand(0, count($adjectives) - 1)]) . ' ' . ucfirst($nouns[rand(0, count($nouns) - 1)]); } -} \ No newline at end of file +}