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?
Linwood
8 days agoAllene
9 days agoDean
10 days agoLashaun
11 days agoPura
17 days agoJamey
20 days agoGracia
25 days ago