Top "Htmlspecialchars" questions

htmlspecialchars is a PHP function that convert special characters to HTML entities.

PHP - htmlspecialchars and UTF-8

I am just trying to confirm something with htmlspecialchars. I have just converted my database into UTF-8, and I think …

php utf-8 htmlspecialchars
Why htmlspecialchars_decode in PHP does not have the charset parameter as in its counterpart?

There is a charset parameter in htmlspecialchars but the decode version does not have it. In comparison to the similar …

php htmlspecialchars
filter_var vs htmlentities vs htmlspecialchars

Disclaimer This is not a question about whether we should be escaping for database input. This is strictly looking at …

php escaping html-entities htmlspecialchars filter-var
using htmlspecialchars in value attribute of text input

My question is similar to this question but I'm not using code igniter. I'm echoing variables obtained from a database …

php attributes escaping quotes htmlspecialchars