Encoding and Escaping
Encoding and escaping are used to safely handle strings.
Common functions:
htmlspecialchars()htmlentities()
Example
Section titled “Example”$text = "<b>Hello</b>";
echo htmlspecialchars($text);Encoding and escaping are used to safely handle strings.
Common functions:
htmlspecialchars()htmlentities()$text = "<b>Hello</b>";
echo htmlspecialchars($text);