HTML Entity Encoder / Decoder

Encode the five characters that break HTML into their entity form, or decode any HTML entity back into plain text. Encoding covers the ampersand, both angle brackets, and both quote marks, which is the set that actually matters for safely placing text into markup.