HTML Escape Sequences for Input Sanitization.

NameSymbolEscape SequenceDescription
ampersand&&

This symbol is used internally by HTML to delimit escape sequences; all escape sequences start with this symbol and terminate at a semicolon.

double quote""

This symbol is used internally by HTML to delimit attribute values; most attribute values must be enclosed in either single quotes or double quotes.

single quote''

This symbol is used internally by HTML to delimit attribute values; most attribute values must be enclosed in either single quotes or double quotes.

less than<&lt;

This symbol is used internally by HTML to delimit HTML elements; it indicates the start of an HTML tag.

greater than>&gt;

This symbol is used internally by HTML to delimit HTML elements; it indicates the termination of an HTML tag.

Other HTML Escape Sequences.

NameSymbolEscape Sequence
semicolon;&semi;
forward slash/&sol;
equals=&equals;
white-space &nbsp;