HTML encoding is used to ensure that special characters such as '<' and '>' are
displayed correctly - and are not interpreted as HTML codes.
HTML encoding is also useful to ensure that any special characters are displayed correctly, even
if the user viewing the formatted HTML is in another country with a different character set.
HTML encoding ensures, for example, that special characters such as æøå and ß
are displayed across character sets and devices without any problems.
Samples
Try out these, if you would like to give it a go, and see how it works:
HTMLEncode: Hello wørld!
HTMLEncode: Hello <i>world</i>!
HTMLDecode: Hello <i>world</i>!