2022年4月29日 11:03 pm #30528
Keymaster
いつもお世話になっております。以下のような感じになります。
if( !document.selection.IsEmpty ) {
sOut = "";
sIn = document.selection.Text;
for( i = 0; i < sIn.length; ++i ) {
n = sIn.charCodeAt( i );
sOut += "&#" + n.toString() + ";";
}
document.selection.Text = sOut;
}
よろしくお願い致します。