mailtoに送信するために使用される文字列があります。
すべての特別な文字を見つけてエスケープし、特別な文字を書くという選択を避けることなく、mailto を適切に機能させたいと考えています。
たとえば、文字列に が含まれている場合#
、mailto の本文はその前で停止します。
String strCmd = String.Format("window.open(\"mailto:{0}?subject={1}&body={2}\");",
toEmail, subject, body);
私の文字列本体が次のような場合:
body = "This is a string to test c# code with a mailto";
その後、mailto には が含まれますThis is a string to test c
。
を取得するには、どうすればこれを修正できThis is a string to test c# code with a mailto
ますか?
ある場合はバックラインも作成する必要があります。
ありがとうございました。