From c0ffe2797ab3f59c4fcd772dd6f848f8ee9ddb1f Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Wed, 31 Jan 2018 09:14:31 +1300 Subject: [PATCH] Update phpdoc for FormField::setRightTitle regarding escaped HTML --- src/Forms/FormField.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Forms/FormField.php b/src/Forms/FormField.php index f19c6425e..547f53630 100644 --- a/src/Forms/FormField.php +++ b/src/Forms/FormField.php @@ -490,7 +490,7 @@ class FormField extends RequestHandler * Gets the contextual label than can be used for additional field description. * Can be shown to the right or under the field in question. * - * @return string Contextual label text. + * @return string Contextual label text */ public function RightTitle() { @@ -499,9 +499,8 @@ class FormField extends RequestHandler /** * Sets the right title for this formfield - * Note: This expects escaped HTML. * - * @param string $rightTitle Escaped HTML for title + * @param string|DBField Plain text string, or a DBField with appropriately escaped HTML * @return $this */ public function setRightTitle($rightTitle)