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 - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -