Re: How do I store special html codes in a database?
Any reason why, DaveSawers? If I do store them as their HTML codes how would I go about handling the display? I encode all user input as I display it on a webpage so that it cannot affect my design either by accident or by maliciousness. Won't storing the HTML codes then result in double encoded output?
Just to try to throw you off just a bit, I don't know if the client will use this database for purposes other than the web. What if my client uses this database to pull information for a print company or vendor specific application that doesn't handle HTML codes?
Am I thinking too hard about this? Should I just let the client deal with it when they try to? That sure seems pretty unprofessional to me.
|