• Not Answered

Sitecore Upgarde 8.2 to 9.2 Multiline linebreak issue

Hi All,

In Sitecore.NET 9.2.0 (rev. 002893) Multiline text field render "br" tag instead of next line.

We have the same implementation in Sitecore 8.2 and it is working fine.

For more clarification please find below scenario:

In Sitecore 8.2 we have implemented as follow:


Bind the field with below code:
@Html.Sitecore().Field("script and css before body ends")

Result is, which is working fine:

Now we performed the same in Sitecore 9.2 but we are getting the different results as:

The html rendering is not same as we got in Sitecore 8.2, we got the "br" tags instead of next line.

We have also resolved the same by @Html.Sitecore().Field("before body ends", new{  linebreaks = "\n"})  but we have to change this all of the component files.

We need a solution at config level or by pipeline. 


Please help us to resolve this issue.