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
30 days agoRenea
1 months agoKenda
1 months agoMarvel
16 days agoReyes
1 months agoCary
1 days agoClement
2 days agoRachael
4 days agoMelodie
7 days agoVivienne
14 days agoMaryann
17 days agoBernadine
18 days agoHannah
1 months agoLinwood
2 months agoAllene
2 months agoDean
2 months agoLashaun
2 months agoPura
2 months agoEdison
1 months agoGlenna
1 months agoJamey
2 months agoGracia
3 months ago