Line breaks are not rendered in MVC Razor View
Try the @Html.Raw
method
@Html.Raw(Model.lstchat)
Use Html.Raw()
it is used to render any string as HTML.
`@Html.Raw("input data in here is rendered as HTML only")`
Try the @Html.Raw
method
@Html.Raw(Model.lstchat)
Use Html.Raw()
it is used to render any string as HTML.
`@Html.Raw("input data in here is rendered as HTML only")`