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
Pratik Raut 14Pratik Raut 14 

Client Potential XSS In Salesforce Security Review

onChange: function(changeItem,o) {
                    if($(o).prop('checked')){
                        var encodedAgencyText = 'Are you sure you wish to remove '+js_attr_encode(o[0].value) +' and all it\'s associated clauses?';
                        clauseDeleteCoinfirm('agnecyClauseId', encodedAgencyText);
                    }

I am getting Client Potential XSS error on below line of above function var encodedAgencyText = 'Are you sure you wish to remove '+js_attr_encode(o[0].value) +' and all it\'s associated clauses?';

Any solution ??

Thanks and regards
Pratik