Encode or decode HTML entities.
Characters like <, > and & have special meaning in HTML, so they need to be encoded (as <, >, &) when you want them to display literally rather than be interpreted as markup.
The five characters that matter for HTML safety: &, <, >, " and '.