I'm not sure of what ReplaceLineBreaks did originally, but there is a string extension called ReplaceLineEndings which you can run on a string like "here is a string".ReplaceLineEndings("replacement value").
Alternavitely there is also @Html.ReplaceLineBreaks("string") which might be what you're looking for.
Where has ReplaceLineBreaks gone?
Hi guys
In previous versions I was using,
I was looking into Umbraco 10, but can't work out how this is now used in a Controller?
Looked at the documentation but most was related to cshtml pages and not a way to use it in a Controller.
Does anyone have an example I could follow?
Thank you
Hello,
I'm not sure of what
ReplaceLineBreaks
did originally, but there is a string extension calledReplaceLineEndings
which you can run on a string like"here is a string".ReplaceLineEndings("replacement value")
.Alternavitely there is also
@Html.ReplaceLineBreaks("string")
which might be what you're looking for.is working on a reply...