diff --git a/layouts/joomla/form/field/text.php b/layouts/joomla/form/field/text.php index cba5f453b9e6f..4dcaf2c4fce1f 100644 --- a/layouts/joomla/form/field/text.php +++ b/layouts/joomla/form/field/text.php @@ -95,7 +95,7 @@ !empty($pattern) ? 'pattern="' . $pattern . '"' : '', // @TODO add a proper string here!!! - !empty($validationtext) ? 'data-validation-text="' . $validationtext . '"' : '', + !empty($validationtext) ? 'data-validation-text="' . $this->escape(Text::_($validationtext)) . '"' : '', ]; $addonBeforeHtml = '' . Text::_($addonBefore) . '';