htmlspecialchars

htmlspecialchars — Convert special characters to HTML entities

Certain characters have special significance in HTML attributes and values, and should be represented by HTML entities if they are to preserve their meanings. This function returns a string with these conversions made. If you require all input substrings that have associated named entities to be translated, use htmlentities() instead.

Input:
[?]

Have Feedback?

Let us know how we can improve this tool.
Share Feedback