You typically only use HTMLEncode when you want to *SHOW* HTML code (e.g., tags *AS TEXT*) in a page. As when making an example or tutorial. Much less common thant URLEncode.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.