HTML Entity Encoder / Decoder

Escape and unescape common HTML entities.

Escape and unescape common HTML entities. This helps when embedding user content in HTML or debugging generated markup.

Always encode dynamic content before inserting it into HTML to avoid XSS.