如何在电子邮件中换行?

How to make a line break in Email?

所以我一直在使用以下代码创建电子邮件发件人:

                var link = "mailto:example@gmailcom"
                + "?cc=myCC@gmail.com"
                + "&subject=" + encodeURIComponent("Order")
                + "&body=" + encodeURIComponent("Some random send string <br>Some more send string")
                ;

            window.location.href = link;

但是,
标签不起作用。有谁知道如何换行?

因为您正在对中断标记进行编码:

encodeURIComponent("Some random send string <br>Some more send string")
// 'Some%20random%20send%20string%20%3Cbr%3ESome%20more%20send%20string'