c# - Filtering ckeditor content when being retrieved from database -


first off realize there similar questions out there, newbie , none seem answer i'm trying achieve. building asp.net mvc 4 application, have content of ckeditor textbox (entered user) saving database. problem being when retrieve data has tags following attached....

<p>ck editor test 2</p>

instead of

ck editor test 2

is there clean way of returning data displayed without tags , still display bold text example.

ps - not using web-forms (as many similar solutions involve)

thanks in advance.

with little help,

@html.raw(httputility.htmldecode(item.body))

in place of

@html.displayfor(modelitem => item.body)

thats took.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -