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
ethan huntethan hunt 

XSS potential attack

Hi All,

I am getting XSS potential violation in the below line - 

var str = '{!XYZ_act_plan__C.key_geographies__c}';

The above code is an input for google map api and it is used in standard object Account.

Kindly help how to avoid it.

Regards
AmitAmit (Salesforce Developers) 
Hello, please have a look at following link for understanding security with APEX and VF : 
https://help.salesforce.com/apex/HTViewHelpDoc?id=review_and_certification.htm&language=en_US