diff --git a/projects/packages/forms/changelog/fix-form-checkbox-italcs-rendering b/projects/packages/forms/changelog/fix-form-checkbox-italcs-rendering new file mode 100644 index 0000000000000..4e4d6c8cd4a9d --- /dev/null +++ b/projects/packages/forms/changelog/fix-form-checkbox-italcs-rendering @@ -0,0 +1,5 @@ +Significance: patch +Type: fixed +Comment: Minor fix + + diff --git a/projects/packages/forms/src/contact-form/class-contact-form-field.php b/projects/packages/forms/src/contact-form/class-contact-form-field.php index cb234ac6a2889..239935f75c16d 100644 --- a/projects/packages/forms/src/contact-form/class-contact-form-field.php +++ b/projects/packages/forms/src/contact-form/class-contact-form-field.php @@ -693,7 +693,7 @@ public function render_checkbox_field( $id, $label, $value, $class, $required, $ $field = "
"; $field .= " \n"; $field .= "\n"; $field .= "
\n"; $field .= '
'; @@ -717,7 +717,7 @@ private function render_consent_field( $id, $class ) { } else { $field .= "\t\t \n"; } - $field .= "\t\t" . esc_html( $consent_message ); + $field .= "\t\t" . wp_kses_post( $consent_message ); $field .= "\n"; $field .= "
\n"; return $field;