Convert values to HTML entities before outputting

Avoids the page messing up when HTML is used in the value of a key.