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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...