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)