views:

77

answers:

1

In my Asp.net MVC 1.0 application I want to use CKEditor as my Rich Text Editor. But if I want to use this editor i have to Disable Request Validation . After doing this if I want to display the whole html content directly I can't use HTML.Encode() becuase I want to render the real html content generated from Editor.

So how can we prevent the potential attact from this change.

+1  A: 

You can use the htmlEncodeOutput option or use a .Net wrapper like this one: http://cksource.com/forums/viewtopic.php?f=11&t=15882

AlfonsoML