rendered paste body var textArtex = $('#eipTexta').val(); textArtex = textArtex.replace(RegExp("'\\]", 'gim'), '</span>'); textArtex = textArtex.replace(RegExp("\\['", 'gim'), '<span class="wcrep2">'); textArtex = textArtex.replace(RegExp('"\\]\n', 'gim'), '</span>'); textArtex = textArtex.replace(RegExp('\\["', 'gim'), '<span class="wcrep1">'); textArtex = textArtex.replace(RegExp("\\+\\]\r", 'gim'), '</span></p>'); textArtex = textArtex.replace(RegExp("\n\\[\\+", 'gim'), '<p><span class="wcauth">'); textArtex = textArtex.replace(RegExp("\\)\\]", 'gim'), '</span>'); textArtex = textArtex.replace(RegExp("\\[\\(", 'gim'), '<span class="wcsml">'); textArtex = textArtex.replace(RegExp("`\\]", 'gim'), '</span>'); textArtex = textArtex.replace(RegExp("\\[`", 'gim'), '<span class="wcgrey">'); textArtex = textArtex.replace(RegExp("~\\]", 'gim'), '</span>'); textArtex = textArtex.replace(RegExp("\\[~", 'gim'), '<span class="wcserif">'); textArtex = textArtex.replace(RegExp("\\[#", "gim"), "<tt>"); textArtex = textArtex.replace(RegExp("#\\]", "gim"), "</tt>"); textArtex = textArtex.replace(RegExp("\\[\\*", "gim"), "<b>"); textArtex = textArtex.replace(RegExp("\\*\\]", "gim"), "</b>"); textArtex = textArtex.replace(RegExp("\\[/", "gim"), "<i>"); textArtex = textArtex.replace(RegExp("/\\]", "gim"), "</i>"); textArtex = textArtex.replace(RegExp("\\[\\^", "gim"), "<sup>"); textArtex = textArtex.replace(RegExp("\\^\\]", "gim"), "</sup>"); textArtex = textArtex.replace(RegExp("\\[\\", "gim"), "<sub>"); textArtex = textArtex.replace(RegExp("\\\\\]", "gim"), "</sub>"); textArtex = textArtex.replace(RegExp("\\[-", "gim"), "<strike>"); textArtex = textArtex.replace(RegExp("-\\]", "gim"), "</strike>"); textArtex = escape(textArtex).replace(RegExp("%0A", "gim"), "<br>");