Re: How do I store special html codes in a database?
Because then they will always display properly on a web page.
Use htmlentities (in PHP) to encode the strings for storage on the database and then, if you need them translated back again for use elsewhere, use html_entity_decode. Presumably there are ASP.NET equivalents for these PHP functions.
|