Now to protect it f...
 
Notifications
Clear all

Now to protect it from XSS attacks, which two methods allow you to keep the php variable output XSS-safe?

1 Posts
1 Users
0 Likes
86 Views
(@pacapacmorgan)
Posts: 738
Noble Member
Topic starter
 

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

  • A . $block->escapeUrl($myUrl)
    B. $block->escapeJs($myName)
    C. $block->escapeHtmlAttr($myName)
    D. $block->escapeHtmlAttr($myUrl)

Show Answer Hide Answer

Suggested Answer: AB
 
Posted : 18/01/2023 3:42 am
Topic Tags

Latest Adobe AD0-E704 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: