不要なstyle属性を削除する
ジェネレータを作ったよ

screenshot https://jquery.com/

このプログラムのJS

$(document).ready(function() {
  $('#code_rep_btn').click(function() {
    var inputText = $('#code_rep_origin').val();
    var replacedText = inputText.replace(/ style="[^"]*"/g, ''); // style 属性を削除
    $('#code_rep_new').val(replacedText);
  });
});
©al2co