parka Posted June 5, 2008 Share Posted June 5, 2008 Is there any difference between storing pure HTML and encoded HTML into databases? E.g. Storing <script> vs <script> They will be properly sanitized before inserting into the database. When printing on a webpage, the <script> will be properly encoded to <script>. And of course, the <script> doesn't need additional encoding. Link to comment https://forums.phpfreaks.com/topic/108797-about-storing-encoded-html-in-database/ Share on other sites More sharing options...
luca200 Posted June 5, 2008 Share Posted June 5, 2008 I prefer to encode it when I show it on a web page. What you store in a db could have some other use, some day..... Link to comment https://forums.phpfreaks.com/topic/108797-about-storing-encoded-html-in-database/#findComment-558140 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.