| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | $this->get_coutineu_button_wrapper_css( $attributes, 'Tablet' ), |
| 29 | 29 | $this->get_coutineu_button_wrapper_css( $attributes, 'Mobile' ), |
| 30 | 30 | $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coutineu_button_wrapper_css( $attributes, $device ); } ) |
| 31 | 31 | ); |
| 32 | - $wrapper_class = ! empty( $attributes['wrapper_class'] ) ? $attributes['wrapper_class'] : 'claim-count-wrapper'; | |
| 32 | + $wrapper_class = sanitize_html_class( $attributes['wrapper_class'] ?? '', 'claim-count-wrapper' ); | |
| 33 | 33 | $css_generator->add_class_styles( |
| 34 | 34 | '{{WRAPPER}} .' . $wrapper_class, |
| 35 | 35 | $this->get_coutineu_button_css( $attributes ), |
| 36 | 36 | $this->get_coutineu_button_css( $attributes, 'Tablet' ), |