URL encoding: how transform all HTML metacharacters (such as "<" and ">") into entities (such as "<" and ">")?

URL encoding: how transform all HTML metacharacters (such as "<" and ">") into entities (such as "&lt" and "&gt")?
Answers

Quentin: Use words for less and greater

Use words for less and greater:- < >