| @@ -27,19 +27,15 @@ | ||
| 27 | 27 | return $this->id; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function set_label( string $label ): self { |
| 31 | - $this->label = html_entity_decode( $label ); | |
| 31 | + $this->label = $label; | |
| 32 | 32 | |
| 33 | 33 | return $this; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - public function get_label(): ?string { | |
| 37 | - return $this->label; | |
| 38 | - } | |
| 39 | - | |
| 40 | 36 | public function set_description( string $description ): self { |
| 41 | - $this->description = html_entity_decode( $description ); | |
| 37 | + $this->description = $description; | |
| 42 | 38 | |
| 43 | 39 | return $this; |
| 44 | 40 | } |
| 45 | 41 | |
| @@ -62,12 +58,11 @@ | ||
| 62 | 58 | public function jsonSerialize(): array { |
| 63 | 59 | return [ |
| 64 | 60 | 'type' => 'section', |
| 65 | 61 | 'value' => [ |
| 66 | - 'id' => $this->id, | |
| 67 | - 'label' => $this->label, | |
| 62 | + 'label' => $this->label, | |
| 68 | 63 | 'description' => $this->description, |
| 69 | - 'items' => $this->items, | |
| 64 | + 'items' => $this->items, | |
| 70 | 65 | ], |
| 71 | 66 | ]; |
| 72 | 67 | } |
| 73 | 68 | } |