Adobe
AD0-E128 · Question #119
Which HTL expression ensures output is automatically escaped to prevent XSS?
The correct answer is B. ${properties.title @ context='text'}. See the full explanation below for the reasoning.
Develop AEM Sites Components
Question
Which HTL expression ensures output is automatically escaped to prevent XSS?
Options
- A${properties.title}
- B${properties.title @ context='text'}
- C${properties.title @ unsafe}
- D<%= properties.title %>
How the community answered
(30 responses)- A13% (4)
- B77% (23)
- C3% (1)
- D7% (2)
Topics
#HTL#XSS prevention#output escaping#context attribute
Community Discussion
No community discussion yet for this question.