Prevent XSS attacks by converting characters to HTML entities using htmlentities().
Source Code
$str = "Test";
echo htmlentities($str); // Converts to entities, making it safe to display
Prevent XSS attacks by converting characters to HTML entities using htmlentities().
$str = "Test";
echo htmlentities($str); // Converts to entities, making it safe to display