function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shruti NigamShruti Nigam 

How to solve Query: Stored XSS Or cross-site scripting...??

Hi all,

I have given my code for securtiy scan and i have following error for stored XSS.

I had solved most of the error but stuck on this.

Anyone know how to solve this ?
Object: select in file: classes/DetailTemplate.cls
L 59: Activity_Template__c acti = [Select Template_Type__c,For_Which_Object__c,All_Day_Event__c from Activity_Template__c Where Id =: ApexPages.currentPage().getParameters().get('id')];

Object: template_type__c in file: classes/DetailTemplate.cls
L 60: typestring = acti.Template_Type__c;

Object: forobjectval187 in file: pages/DetailTemplate.page
L 71: if('{!typestring}' == "Appointment"){

Object: typestring in file: classes/DetailTemplate.cls
L 4: public string typestring{get;set;}

Object: gettypestring in file: pages/DetailTemplate.page
L 71: if('{!typestring}' == "Appointment"){


Thanks in advance.