Fixed Cross Site Scripting Issue

In index.php/detail.php for stringtype fields
Final commit for 3.6.6