| @@ -28,9 +28,8 @@ | ||
| 28 | 28 | |
| 29 | 29 | public function render_content() { |
| 30 | 30 | $field = $this->field; |
| 31 | 31 | $options = preg_split( '/\\r\\n|\\r|\\n/', $field['field_options'], -1, PREG_SPLIT_NO_EMPTY ); |
| 32 | - $attrs = $this->widget->get_render_attribute_string( 'field-' . $this->get_id() ); | |
| 33 | 32 | |
| 34 | 33 | if ( empty( $options ) ) { |
| 35 | 34 | return; |
| 36 | 35 | } |
| @@ -41,9 +40,9 @@ | ||
| 41 | 40 | <div class="sellkit-field-select-arrow"> |
| 42 | 41 | <?php Module::render_icon( $this->widget->get_settings_for_display()['select_arrow_icon'] ); ?> |
| 43 | 42 | </div> |
| 44 | 43 | <?php endif ?> |
| 45 | - <select <?php echo $attrs; ?>> | |
| 44 | + <select <?php echo $this->widget->get_render_attribute_string( 'field-' . esc_attr( $this->get_id() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor-generated attributes. ?>> | |
| 46 | 45 | <?php $this->render_options( $options ); ?> |
| 47 | 46 | </select> |
| 48 | 47 | </div> |
| 49 | 48 | <?php |
| @@ -67,9 +66,9 @@ | ||
| 67 | 66 | |
| 68 | 67 | $this->widget->add_render_attribute( $option_id, $option_args ); |
| 69 | 68 | |
| 70 | 69 | ?> |
| 71 | - <option <?php echo $this->widget->get_render_attribute_string( $option_id ); ?>> | |
| 70 | + <option <?php echo $this->widget->get_render_attribute_string( $option_id ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor-generated attributes. ?>> | |
| 72 | 71 | <?php echo esc_html( $option_label ); ?> |
| 73 | 72 | </option> |
| 74 | 73 | <?php |
| 75 | 74 | } |