Remove carriage return from string

前端 未结 9 2110
逝去的感伤
逝去的感伤 2021-01-03 17:41

I would like to insert the following into a string

some text here

some text here

some text here

9条回答
  •  日久生厌
    2021-01-03 18:10

    I just had the same issue in my code today and tried which worked like a charm.

    .Replace("\r\n")
    

提交回复
热议问题