Perform output encoding

global xss filter may not always be enabled, prevent malicious user
input from being executed in the admin panel.
Merge pull request #621 from nashcontrol/2

Perform output encoding in the views