diff --git a/src/class-cf7-extras.php b/src/class-cf7-extras.php index 12f7c5c..c1211df 100644 --- a/src/class-cf7-extras.php +++ b/src/class-cf7-extras.php @@ -181,6 +181,22 @@ public function wpcf7_add_meta_boxes( $post_id ) { ); } + private function esc_field_label( $label ) { + return wp_kses( + $label, + array( + 'a' => array( + 'href' => array(), + 'target' => array(), + ), + 'strong' => array(), + 'em' => array(), + 'span' => array(), + 'code' => array(), + ) + ); + } + /** * Display our custom form settings. * @@ -204,7 +220,7 @@ public function wpcf7_metabox( $cf7 ) {

%s

', checked( $settings['disable-ajax'], true, false ), esc_html__( 'Disable AJAX for this form', 'contact-form-7-extras' ), - __( 'Same as define( \'WPCF7_LOAD_JS\', false );. Disabling AJAX will also disable Google Analytics event tracking and HTML5 input type fallback for this form.', 'contact-form-7-extras' ) + $this->esc_field_label( __( 'Same as define( \'WPCF7_LOAD_JS\', false );. Disabling AJAX will also disable Google Analytics event tracking and HTML5 input type fallback for this form.', 'contact-form-7-extras' ) ) ), ), 'extra-disable-css' => array( @@ -218,7 +234,7 @@ public function wpcf7_metabox( $cf7 ) {

%s

', checked( $settings['disable-css'], true, false ), esc_html__( 'Disable default CSS for this form', 'contact-form-7-extras' ), - __( 'Disables CSS that comes bundled with Contact Form 7. Same as define( \'WPCF7_LOAD_CSS\', false );.', 'contact-form-7-extras' ) + $this->esc_field_label( __( 'Disables CSS that comes bundled with Contact Form 7. Same as define( \'WPCF7_LOAD_CSS\', false );.', 'contact-form-7-extras' ) ) ), ), 'extra-disable-autop' => array( @@ -232,7 +248,7 @@ public function wpcf7_metabox( $cf7 ) {

%s

', checked( $settings['disable-autop'], true, false ), esc_html__( 'Disable automatic paragraph formatting in form output', 'contact-form-7-extras' ), - __( 'Same as define( \'WPCF7_AUTOP\', false );.', 'contact-form-7-extras' ) + $this->esc_field_label( __( 'Same as define( \'WPCF7_AUTOP\', false );.', 'contact-form-7-extras' ) ) ), ), 'extra-enable-shortcodes' => array(