79155388

Date: 2024-11-04 12:12:12
Score: 0.5
Natty:
Report link

Since .Net6 ReplaceLineEndings extensions method provides such ability.

string tmp = """
1
2
""";

Console.WiteLine(tmp.ReplaceLineEndings()); // replace line endings to  Environment.NewLine
Console.WiteLine(tmp.ReplaceLineEndings("<br/>")); // replace line endings to <br/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: 3per