nerdexam
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)
  • A
    13% (4)
  • B
    77% (23)
  • C
    3% (1)
  • D
    7% (2)

Topics

#HTL#XSS prevention#output escaping#context attribute

Community Discussion

No community discussion yet for this question.

Full AD0-E128 Practice