We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9982f49 commit b8d3a7cCopy full SHA for b8d3a7c
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