I'm having a hard time getting wp_kses
to allow the class for an input. These approaches didn't work:
input' => array(
'type' => true,
'class' => true,
'name' => true,
'value' => true,
'id' => true
),
also with array()
for class it still is not returned.
Checked is also filtered.
Why do I need this? Well, long story short, the input is in a table which needs to be escaped prior to being printed with echo or with ajax.
return array('table' => array( 'class' => true, 'id' => true ), 'input' => array( 'type' => true, 'class' => true / array(), 'name' => true, 'value' => true, 'id' => true )
for table the class is preserved, for input it is not