Update TextString.cshtml (#9535)

ReplaceLineBreaksForHtml is deprecated and the alternative ReplaceLineBreaks includes HtmlEncode.

This update will remove an error in Visual Studio
This commit is contained in:
fhatrifork
2020-12-13 01:05:54 +01:00
committed by GitHub
parent 602980a9d6
commit 00a5df7ac5

View File

@@ -5,7 +5,7 @@
@if (Model.editor.config.markup != null)
{
string markup = Model.editor.config.markup.ToString();
markup = markup.Replace("#value#", Html.ReplaceLineBreaksForHtml(HttpUtility.HtmlEncode((string)Model.value.ToString())).ToString());
markup = markup.Replace("#value#", Html.ReplaceLineBreaks((string)Model.value.ToString()).ToString());
if (Model.editor.config.style != null)
{