Alex Rivera | Logout

How Can I strip HTML from Text in .NET?

Asked 2009-08-28T19:56:04.423
11

I have an asp.net web page that has a TinyMCE box. Users can format text and send the HTML to be stored in a database.

On the server, I would like to take strip the html from the text so I can store only the text in a Full Text indexed column for searching.

It's a breeze to strip the html on the client using jQuery's text() function, but I would really rather do this on the server. Are there any existing utilities that I can use for this?

EDIT

See my answer.

EDIT 2

alt text http://tinyurl.com/sillychimp

Edit
Report

1 Answer

8
answered 2009-08-28T19:59:50.203

Your Answer