Jump to content

Recommended Posts

Posted

My app doesn't need to accept HTML as HTML*but HTML as plain text and something that looks like markup may be entered.

 

Therefore unless I'm very mistaken I need to turn off page validation and to stop HTML from getting rendered I need to HTMLEncode somewhere.

 

Some data may be exported as CSV for use in none HTML rendering applications.

 

My plan was to HTMLEncode all input text either before being passed to the BLL or in the BLL itself, so HTMLEncoded strings are stored in the database.

 

I would*then need*to decode only when the data is being externally exported.

 

Is this the correct way? Or should I not encode any data until it is being pulled out of the database?

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...