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)
diff --git a/src/Umbraco.Web/UmbracoHelper.cs b/src/Umbraco.Web/UmbracoHelper.cs
index bf51d8b6af..91cd388317 100644
--- a/src/Umbraco.Web/UmbracoHelper.cs
+++ b/src/Umbraco.Web/UmbracoHelper.cs
@@ -875,7 +875,7 @@ namespace Umbraco.Web
///
/// The text.
/// The text with text line breaks replaced with html linebreaks (
)
- public string ReplaceLineBreaksForHtml(string text)
+ public IHtmlString ReplaceLineBreaksForHtml(string text)
{
return StringUtilities.ReplaceLineBreaksForHtml(text);
}