vendredi 30 janvier 2015

changing Html.Raw into string without html markup in a razor view


Vote count:

0




Quite simple question. I have the following code



@Html.Raw(following.Description).ToString()


when this comes from database it has some markup in it (its a forum post but i want to show a snippet in the list without the markup


is there any way to remove this and replace this line or shall I just regex it from the controller?



asked 26 secs ago







changing Html.Raw into string without html markup in a razor view

Aucun commentaire:

Enregistrer un commentaire