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've been using @Html.Raw(umbraco.library.RemoveFirstParagraphTag(Model.GetPropertyValue("homeNewsPerspectiveTitle").ToString()))
what's the v8 version of that? umbraco.library.RemoveFirstParagraphTag doesn't seem to exist, or if it does I haven't found it yet.
The whole umbraco.library has been obsolete for years and has now been removed from v8 as a part of the "code cleanup".
Though, the RemoveFirstParagraphTag method was nice and should be requested re-invoked ...
Does anyone have a alternative for the deprecated RemoveFirstParagraphTag? I use that method extensively throughout my projects.
The implementation for it was like so:
public static string RemoveFirstParagraphTag(string text)
if (text.Length > 5)
if (text.ToUpper().Substring(0, 3) == "<P>")
text = text.Substring(3, text.Length - 3);
if (text.ToUpper().Substring(text.Length - 4, 4) == "</P>")
text = text.Substring(0, text.Length - 4);
so you could add an extension method or service to do the same logic in your new projects.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted