Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sébastien Richer 194 posts 430 karma points
    Jan 30, 2013 @ 15:57
    Sébastien Richer
    0

    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:

    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!

  • Mike Chambers 636 posts 1253 karma points c-trib
    Jan 30, 2013 @ 23:11
    Mike Chambers
    0

    var stripped = @Library.StripHtml(dynContest.text)

    would be how I'd be using it in razor...

  • 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.

Please Sign in or register to post replies