1

I'm using CKEditor in MVC 2 application, and i want to display the text from the editor without HTML tags, like bellow

Text in editor:<p>Some text</p> Text to display: Some text

Greetings

2 Answers 2

1

How about using HTML Agility Pack and strip all HTML tags in the controller action method and output the result tot he view ?

Sign up to request clarification or add additional context in comments.

Comments

1

You'll need to open the document in Preview mode.

Reference: http://docs.cksource.com/CKEditor_3.x/Users_Guide/Document/Preview

1 Comment

Preview is a command of the editor, you don't want your end users to load the editor just to click then on the Preview button.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.