@@ -155,7 +155,7 @@ public function Regular( $args, $default_value = '' ) {
155
155
$ html = '<div class=" ' . $ input_wrapper_class . '"> ' ;
156
156
if ( $ label ) {
157
157
$ html .= '<label class=" ' . $ this ->get_default_setting_value ( 'global ' , 'label_class ' , $ id ) . '" for=" ' . $ id . '"> ' ;
158
- $ html .= esc_html ( $ label ) . '</label> ' ;
158
+ $ html .= wp_kses ( $ label, array ( ' span ' => array ( ' class ' => true , ' data-* ' => true , ' title ' => true ) ) ) . '</label> ' ;
159
159
}
160
160
161
161
if ( $ price !== '' ) {
@@ -235,7 +235,7 @@ public function Measure( $args, $default_value = '' ) {
235
235
$ html = '<div class=" ' . esc_attr ( $ input_wrapper_class ) . '"> ' ;
236
236
if ( $ label ) {
237
237
$ html .= '<label class=" ' . $ this ->get_default_setting_value ( 'global ' , 'label_class ' , $ id ) . '" for=" ' . $ id . '"> ' ;
238
- $ html .= esc_html ( $ label ) . '</label> ' ;
238
+ $ html .= wp_kses ( $ label, array ( ' span ' => array ( ' class ' => true , ' data-* ' => true , ' title ' => true ) ) ) . '</label> ' ;
239
239
}
240
240
241
241
$ classes .= ' ppom-measure-input ' ;
@@ -1596,7 +1596,7 @@ public function Custom( $args, $default_value = '' ) {
1596
1596
$ html = '<div class=" ' . $ input_wrapper_class . '"> ' ;
1597
1597
if ( $ label ) {
1598
1598
$ html .= '<label class=" ' . $ this ->get_default_setting_value ( 'global ' , 'label_class ' , $ id ) . '" for=" ' . $ id . '"> ' ;
1599
- $ html .= esc_html ( $ label ) . '</label> ' ;
1599
+ $ html .= wp_kses ( $ label, array ( ' span ' => array ( ' class ' => true , ' data-* ' => true , ' title ' => true ) ) ) . '</label> ' ;
1600
1600
}
1601
1601
1602
1602
$ html .= apply_filters ( 'nmform_custom_input ' , $ html , $ args , $ default_value );
0 commit comments