Not without WP changing the code on a second load when wanting to edit it.
I have had to add the following to my functions.php file in my theme to stop WP from mangling up the html code.
/* WP Text Editor no auto changes to HTML code */
function override_mce_options($initArray) {
$opts = '*[*]';
$initArray['valid_elements'] = $opts;
$initArray['extended_valid_elements'] = $opts;
return $initArray;
}
add_filter('tiny_mce_before_init', 'override_mce_options');
This appears to work for what I need, at least until it breaks with any future WP updates. Hence my request asking if it was possible to do an insert html ‘specific code’ into a tab, accordion etc without WP mangling the html code on an edit of that page.
Cheers