Valid PDI Dumps shared by EduDump.com for Helping Passing PDI Exam! EduDump.com now offer the newest PDI exam dumps, the EduDump.com PDI exam questions have been updated and answers have been corrected get the newest EduDump.com PDI dumps with Test Engine here:
Access PDI Dumps Premium Version
(205 Q&As Dumps, 35%OFF Special Discount Code: freecram)
Recent Comments (The most recent comments are at the top.)
Correct answer should be A , here is why :
String.escapeSingleQuotes is used to prevent SQL injection attacks and not crss attacks
String.valueof does nothing but converting to a String type ( the method returns a string datatype tho )
String.escapeEcmaScript(), String.escapeHtml3(), and String.escapeHtml4(). These functions are based on Apache's StringEscapeUtils package which was not designed for security encoding and should not be used
Reference : https://developer.salesforce.com/docs/atlas.en-us.secure_coding_guide.meta/secure_coding_guide/secure_coding_cross_site_scripting.htm
A.?
"Do not use the built in Apex String Encoding functions: String.escapeEcmaScript(), String.escapeHtml3(), and String.escapeHtml4(). These functions are based on Apache's StringEscapeUtils package which was not designed for security encoding and should not be used."
https://developer.salesforce.com/docs/atlas.en-us.secure_coding_guide.meta/secure_coding_guide/secure_coding_cross_site_scripting.htm