Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Replace @context=unsafe for inline js

Avatar

Community Advisor

Hi ,

 I have requirement to call inline script into text area and I have added in sightly like ${properties.textarea @CONTEXT='unsafe'} but as you know Unsafe disabled the XSS protection.

does any one know other way to do it.

 

Kr,

Sanjay

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi @Sanjay_Bangar ,

Please try @context='scriptComment'  instead of unsafe.There are other ways to do, but check if this resolves your purpose.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi @Sanjay_Bangar ,

Please try @context='scriptComment'  instead of unsafe.There are other ways to do, but check if this resolves your purpose.

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now