Convert special characters into HTML-safe entity references for web markup.
Convert HTML entity references back to their original characters.