Copied to clipboard

Flag this post as spam?

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


  • varsha 1 post 21 karma points
    Jun 21, 2011 @ 06:24
    varsha
    0

    Filtering comments using xslt

    Hi,

    I want to filter all the comments (sharepoint list) containing badwords.

    I have stored all the badwords in a file(badword separated by comma ex.bad1,bad2..)

    Is it possible using xslt filtering of comments ?  Is there any solution using xslt?

     

     

  • Steen Tøttrup 191 posts 291 karma points c-trib
    Jun 21, 2011 @ 06:49
    Steen Tøttrup
    2

    Maybe the XSLT guys has some idea, but I myself would go for writing an XSLT extension (in whatever .NET language you're good at) and use that from XSLT.

    regards, Steen

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Jun 21, 2011 @ 22:39
    Chriztian Steinmeier
    0

    Hi varsha,

    I'd second Steen's suggestion - this kind of action really doesn't belong in the View layer - to do something like this, you need a bit more than the rudimentary string manipulation XSLT offers - and it's fairly simple (I hear) to write a custom extension that could do the filtering for you. Heck, Steen may already be done with it by now :-)

    /Chriztian

  • Steen Tøttrup 191 posts 291 karma points c-trib
    Jun 22, 2011 @ 06:39
    Steen Tøttrup
    0

    Haha! If varsha need an extension, I could do it, that shouldn't take long.

Please Sign in or register to post replies

Write your reply to:

Draft