Jump to content

About storing encoded HTML in database


parka

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.