Problem with articles on TheBeerHouse_MVC v2.0

Topics: Developer Forum, Project Management Forum, User Forum
Sep 13, 2009 at 8:18 AM

Why do I see html tag in articles?

Example: http://www.thebeerhouseexample.com/articles/4/photos-from-our-latest-bash

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut viverra nisl ac urna. ...

Tag <p> in result text - it's bad. And other tag will be display...

It's problem with Tiny MCE?

How do I fix this?  

Coordinator
Sep 14, 2009 at 6:58 PM

Html.Encode and Html.Decode. These should fix that issue. We will put this update in the next release.

Sep 14, 2009 at 10:29 PM

Yes, I noticed that the article abstracts are stored sans html tags but the body column includes them.  So, what about XSS fears and html encoding?  Will the Beerhouse no longer encode the article body in the ViewArticle view?  Is there an alternate way to encode, something smarter, that only encodes the dangersous stuff?  Maybe Html Agility Pack in the next release?

Thanks...

 

Sep 15, 2009 at 12:43 AM

When will the next release?...

Sep 17, 2009 at 10:15 PM
Edited Sep 17, 2009 at 10:16 PM

Or tell that to change to fix it!

Please!