在mailcomposer中向html正文添加新行
如何将新行字符添加到邮件编辑器的 html 正文中?
我有一个字符串:
NSString *emailBody = [NSString stringWithFormat:@"<html><b>%%0D%%0AHello,%%0D%%0AHere's a link to your product%%0D%%0A<a href=\"%@\">click here</a>%%0D%%0A best regards</b></html>", currentProduct.url_product_details];
[picker setMessageBody:emailBody isHTML:YES];
当我设置邮件编辑器的正文时,我看到它没有换行。 如何让新行出现?
TIA
How do i add a new line characters to html body of mail composer?
I have a string:
NSString *emailBody = [NSString stringWithFormat:@"<html><b>%%0D%%0AHello,%%0D%%0AHere's a link to your product%%0D%%0A<a href=\"%@\">click here</a>%%0D%%0A best regards</b></html>", currentProduct.url_product_details];
[picker setMessageBody:emailBody isHTML:YES];
When I set the body of a mail composer I see it without new lines.
How do i cause new lines to appear?
TIA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 HTML 中,换行符是
,而不是%0D%0A
。并使用
...
作为段落。
例如,
In HTML, newlines are
<br />
, not%0D%0A
.And use
<p>...</p>
for a paragraph.For example,