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
2 months agoRenea
3 months agoKenda
3 months agoGlenn
1 months agoAmie
1 months agoFrancene
1 months agoMarvel
2 months agoReyes
3 months agoCary
2 months agoClement
2 months agoRachael
2 months agoMelodie
2 months agoVivienne
2 months agoMaryann
2 months agoBernadine
2 months agoHannah
3 months agoLinwood
3 months agoAllene
4 months agoDean
4 months agoLashaun
4 months agoPura
4 months agoEdison
3 months agoGlenna
3 months agoJamey
4 months agoGracia
4 months ago