Related Functions

htmlspecialchars

PHP 4.0+

Converts special characters to HTML entities to prevent XSS attacks and ensure proper HTML rendering of user-generated content.

Description

The htmlspecialchars() Converts special characters to HTML entities to prevent XSS attacks and ensure proper HTML rendering of user-generated content.

Example