StringExtensions.ReplaceLineBreaks method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Strings.Extensions |
---|---|
Assembly | Skybrud.Essentials.dll |
ReplaceLineBreaks(string)
Extension method
HTML encodes the text and replaces text line breaks with HTML line breaks.
public static string ReplaceLineBreaks(this string input)
Parameters
input
String
The input string.
Returns
The HTML encoded text with text line breaks replaced with HTML line breaks (<br />
).