How to disable users from posting code

2 posts, 0 answers
  1. Santosh
    Santosh avatar
    4 posts
    Member since:
    Aug 2010

    Posted 06 Jun 2011 Link to this post

    I am using telerik radeditor, dll version "2010.2.713.35". Right now we have allowed the users to put any content in the editor, but we would like to restrict them from posting any C# or java script code. please let me know how can i achieve this?

    Santosh Kumar
  2. Rumen
    Rumen avatar
    14351 posts

    Posted 08 Jun 2011 Link to this post

    Hello Santosh,

    The JavaScript script tags and the JS code inside them are automatically stripped by the RadEditor's RemoveScripts content filter, which is enabled by default. If you want to strip C# code, you can write your own custom content filter that recognizes such markup and strip it.

    Best regards,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top