Encode and decode HTML entities — ampersands, angle brackets, quotes, and Unicode.