php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "htmlentities"

Is using htmlentities() and mysql_escape_string() together in PHP functions a recommended practice for security?

Using htmlentities() and mysql_escape_string() together is not recommended for security purposes. htmlentities() is used to escape HTML characters to...

What potential security risks can arise from not using htmlentities() in PHP form fields?

Not using htmlentities() in PHP form fields can leave your application vulnerable to cross-site scripting (XSS) attacks, where malicious scripts are i...

What are the differences between using htmlentities and htmlspecialchars for escaping characters in PHP?

When escaping characters in PHP, both htmlentities and htmlspecialchars can be used to prevent XSS attacks by converting special characters to their H...

How does the encoding of characters impact the output when using htmlentities in PHP?

When using htmlentities in PHP to encode characters, it's important to consider the character encoding of the input and output. If the character encod...

What are the differences between htmlentities and htmlspecialchars in PHP, and when should each be used?

htmlentities and htmlspecialchars are both PHP functions used to convert special characters to their HTML entities, preventing cross-site scripting at...

Showing 46 to 50 of 1235 results

‹ 1 2 ... 7 8 9 10 11 12 13 ... 246 247 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.