Skip to content Skip to sidebar Skip to footer
Showing posts with the label Htmlspecialchars

Php - Htmlspecialchars And Utf-8

I am just trying to confirm something with htmlspecialchars. I have just converted my database into… Read more Php - Htmlspecialchars And Utf-8

Is It Better To Escape/encode The User Input Before Storing It To Database Or To Store It As It Is In Database And Escape It While Retrieving?

I am using htmlspecialchars() function to prevent XSS attacks. I have doubt regarding what is the b… Read more Is It Better To Escape/encode The User Input Before Storing It To Database Or To Store It As It Is In Database And Escape It While Retrieving?

Htmlspecialchars Causing Text To Disapear

I encountered a particular string (it's not completely printable, but you can see it below) tha… Read more Htmlspecialchars Causing Text To Disapear

Does Sometime Fputs() Or Fwrite() Encode Html Special Characters?

I am outputting a string that consists of html content to a html file, but in the html file the htm… Read more Does Sometime Fputs() Or Fwrite() Encode Html Special Characters?

Saving And Displaying Html And Special Characters In A Mysql Database Safely?

The title basically sums it up. I built a small blog but I cant even post links in my articles! Wha… Read more Saving And Displaying Html And Special Characters In A Mysql Database Safely?