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
How do I strip and truncate html in v10? Is there a helper built in Umbraco for this?
Hi Jukka-Pekka,
The Umbraco.Extensions.StringExtensions class has a .StripHtml() extension method you can call on any string. This will return the string without any HTML tags in it!
Hope this helped,
Corné
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
StripHtml and Truncate in v10
How do I strip and truncate html in v10? Is there a helper built in Umbraco for this?
Hi Jukka-Pekka,
The Umbraco.Extensions.StringExtensions class has a .StripHtml() extension method you can call on any string. This will return the string without any HTML tags in it!
Hope this helped,
Corné
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.