标签: html objective-c newline carriage-return
在浏览器中我得到像
"post":"<p>this is for testing<\/p>\r\n",
但是当我将此输出存储在字符串中时,它返回:
"post":"<p>this is for testing<\/p>",
并在标签上显示它扩展新的空白行。 如何删除空行?
[myMutableString stringByReplacingOccurrencesOfString:@"\n" withString: @""];并且一切都无效。
[myMutableString stringByReplacingOccurrencesOfString:@"\n" withString: @""];