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
Maybe it's because I did'nt get enough sleep, but I keep having trouble using UmbracoHelper.StripHtml. Here is the code I'm using:
var snippet = Utilities.GetFirstFewWords(UmbracoHelper.StripHtml(dynContest.text, null), 140);
Now I put null in that second params, I just want to remove all HTML tags in there. What am I missing?
Thanks!
var stripped = @Library.StripHtml(dynContest.text)
would be how I'd be using it in razor...
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Trouble using UmbracoHelper.StripHtml
Maybe it's because I did'nt get enough sleep, but I keep having trouble using UmbracoHelper.StripHtml. Here is the code I'm using:
Now I put null in that second params, I just want to remove all HTML tags in there. What am I missing?
Thanks!
var stripped = @Library.StripHtml(dynContest.text)
would be how I'd be using it in razor...
is working on a reply...