Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I need to remove line brakes from data inside a content picker.
I'm getting the code from the content picker like so
@{ var disclaimer = Umbraco.Content(CurrentPage.standardDisclaimer); @Html.Raw(disclaimer.content) }
Doing this returns the content from the Content Picker, however, the code is not clean and includes line breaks.
I have tried fixes like var cleanedString = disclaimer.Replace("\r", "").Replace("\n", "").Trim(); with no luck.
var cleanedString = disclaimer.Replace("\r", "").Replace("\n", "").Trim();
Any suggestions on removing line breaks from a content picker?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Remove line breaks from content picker
I need to remove line brakes from data inside a content picker.
I'm getting the code from the content picker like so
Doing this returns the content from the Content Picker, however, the code is not clean and includes line breaks.
I have tried fixes like
var cleanedString = disclaimer.Replace("\r", "").Replace("\n", "").Trim();
with no luck.Any suggestions on removing line breaks from a content picker?
is working on a reply...