About the HTML Entity Encoder / Decoder
Convert HTML-significant characters such as ampersands, angle brackets, and quotes into entities, or decode named, decimal, and hexadecimal entities back to plain text. The output remains text and is never injected as markup. Entity encoding is useful when displaying text inside an HTML context, but it is not a universal XSS sanitizer: safe escaping depends on the output context and the rest of your application.