| @@ -248,8 +248,9 @@ | ||
| 248 | 248 | 'label' => __('Select Course', 'notificationx'), |
| 249 | 249 | 'type' => 'select-async', |
| 250 | 250 | 'multiple' => true, |
| 251 | 251 | 'priority' => 201, |
| 252 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context. | |
| 252 | 253 | 'options' => apply_filters('nx_elearning_course_list', [ |
| 253 | 254 | [ |
| 254 | 255 | 'label' => "Type for more result...", |
| 255 | 256 | 'value' => null, |
| @@ -289,9 +290,9 @@ | ||
| 289 | 290 | } |
| 290 | 291 | |
| 291 | 292 | public function conversion_data($saved_data, $settings) { |
| 292 | 293 | if ( ! empty( $saved_data['course_title'] ) ) { |
| 293 | - $saved_data['course_title'] = strip_tags( html_entity_decode( $saved_data['course_title'] ) ); | |
| 294 | + $saved_data['course_title'] = wp_strip_all_tags( html_entity_decode( $saved_data['course_title'] ) ); | |
| 294 | 295 | } |
| 295 | 296 | return $saved_data; |
| 296 | 297 | } |
| 297 | 298 | |