0

It should be free. Easily integrable with asp.net mvc. Extremely light-weight. It must sanitize the input.

for example, say if the user enters

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

It must not break the formatting of the page!

if the user enters some nasty html or maybe any html at all or any javascript code, it should reject that.

It would be awesome if it did some sort of cuss-word checking too, but that is not a requirement. It can be jquery based.

Before you feel tempted to mark this question as duplicate, do check whether other questions are very old or something like that.

TPR
  • 2,567
  • 10
  • 41
  • 65

1 Answers1

0

There are lots of RTEs that can be easily integrated into an asp.net page.There are many that are jquery based. See here I use server side code to sanitize. There are a number of classes that can be used to sanitize html. Run the user entered text thru the sanitizer to strip the markup.I am using http://roberto.open-lab.com/2010/03/04/a-html-sanitizer-for-c/ Jeff Atwoods code is here Also see this SO post

Community
  • 1
  • 1
Ashok Padmanabhan
  • 2,110
  • 1
  • 19
  • 36