From 043ac0ea462de0f2f8e8f163457653fa160689f1 Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Mon, 12 Jan 2026 14:48:01 -0400 Subject: [PATCH] Change how icons are rendered for inserting shortcodes to reduce number of phpcs ignore comments for echoing unescaped html --- classes/helpers/FrmFormsHelper.php | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/classes/helpers/FrmFormsHelper.php b/classes/helpers/FrmFormsHelper.php index 5ea6e1f9d6..41e1a65165 100644 --- a/classes/helpers/FrmFormsHelper.php +++ b/classes/helpers/FrmFormsHelper.php @@ -701,29 +701,24 @@ public static function insert_opt_html( $args ) { $truncated_name = FrmAppHelper::truncate( $args['name'], 60 ); - if ( isset( $field['icon'] ) ) { - $icon = FrmAppHelper::icon_by_class( - $field['icon'], - array( - 'aria-hidden' => 'true', - 'echo' => false, - ) - ); - } else { - $icon = ''; - } ?>
  • 'true' ) ); + } + echo esc_html( $truncated_name ); ?> [] 'true' ) ); + } + echo esc_html( $truncated_name ); ?> []