We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3356d0 commit 4876961Copy full SHA for 4876961
src/Forms/Controls/BaseControl.php
@@ -276,7 +276,7 @@ public function getLabel($caption = null)
276
$label->for = $this->getHtmlId();
277
$caption = $caption === null ? $this->caption : $caption;
278
$translator = $this->getForm()->getTranslator();
279
- $label->setText($translator ? $translator->translate($caption) : $caption);
+ $label->setText($translator && !$caption instanceof Nette\Utils\IHtmlString ? $translator->translate($caption) : $caption);
280
return $label;
281
}
282
0 commit comments