Stop wordpress removing html. Add the bellow code on your functions.php

function ns_override_mce_options($initArray) {

    $opts = '*[*]';
    $initArray['valid_elements'] = $opts;
    $initArray['extended_valid_elements'] = $opts;
    return $initArray;

}
add_filter('tiny_mce_before_init', 'ns_override_mce_options');