In a phtml, you added script tag and defined couple of js variables as below:Now to protect it from XSS attacks, which two methods allow you to keep the php variable output XSS-safe?Choose 2
I'm not sure about the answer. Can someone explain why D) $block->escapeHtmlAttr($myUrl) is not one of the methods to keep the php variable output XSS-safe?
Alison
13 days agoRenea
17 days agoKenda
18 days agoReyes
25 days agoBernadine
1 days agoHannah
20 days agoLinwood
1 months agoAllene
1 months agoDean
1 months agoLashaun
2 months agoPura
2 months agoEdison
16 days agoGlenna
17 days agoJamey
2 months agoGracia
2 months ago