Valid B2C-Commerce-Architect Dumps shared by ExamDiscuss.com for Helping Passing B2C-Commerce-Architect Exam! ExamDiscuss.com now offer the newest B2C-Commerce-Architect exam dumps, the ExamDiscuss.com B2C-Commerce-Architect exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com B2C-Commerce-Architect dumps with Test Engine here:
A developer is checking for Cross Site Scripting (XSS) and found that the quick search is not escaped (allows inclusion of Javascript) in the following script: How would the developer resolve this issue?
Correct Answer: B
To resolve the issue of Cross Site Scripting (XSS) where the quick search is not escaped, the developer should use the <isprint> tag with the 'jshtml' encoding option (Answer B). This method ensures that any JavaScript included in the search phrase is properly escaped, preventing the execution of potentially malicious scripts. The 'jshtml' encoding is specifically designed to encode text for HTML contexts where JavaScript is embedded, providing a secure way to handle user input in Salesforce B2C Commerce.