Escapes special HTML characters in a string to prevent XSS attacks.
Replaces characters such as &, <, >, ", and ' with their HTML-escaped equivalents.
The text to escape.
The escaped version of the input text.
Escapes special HTML characters in a string to prevent XSS attacks.
Replaces characters such as &, <, >, ", and ' with their HTML-escaped equivalents.