/// <summary> /// Fixes a plain text field for display as HTML by replacing carriage returns /// with the appropriate br and p tags for breaks. /// </summary> /// <param name="String Text">Input string</param> /// <returns>Fixed up string</returns> public static string DisplayMemo(string HtmlText) { HtmlText = HtmlText.Replace("\r\n","\r"); HtmlText = HtmlText.Replace("\n","\r"); HtmlText = HtmlText.Replace("\r\r","<p>"); HtmlText = HtmlText.Replace("\r","<br>"); return HtmlText; }>