From ba22ac4e839538c8648c989e3acaec59421982df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Kottal?= Date: Tue, 28 Aug 2018 20:18:12 +0200 Subject: [PATCH] Update HtmlStringUtilities.cs --- src/Umbraco.Web/HtmlStringUtilities.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/HtmlStringUtilities.cs b/src/Umbraco.Web/HtmlStringUtilities.cs index 26ee4c6557..be14df8e5a 100644 --- a/src/Umbraco.Web/HtmlStringUtilities.cs +++ b/src/Umbraco.Web/HtmlStringUtilities.cs @@ -20,9 +20,9 @@ namespace Umbraco.Web /// /// The text. /// The text with text line breaks replaced with html linebreaks (
)
- public string ReplaceLineBreaksForHtml(string text) + public HtmlString ReplaceLineBreaksForHtml(string text) { - return text.Replace("\r\n", @"
").Replace("\n", @"
").Replace("\r", @"
"); + return new HtmlString(text.Replace("\r\n", @"
").Replace("\n", @"
").Replace("\r", @"
")); } public HtmlString StripHtmlTags(string html, params string[] tags)