add CGI.escapeHTML for record inspector

Hi, I have add CGI.escapeHTML for record inspector panel.
It may cause XSS problem for current version.