Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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
Employee Advisor

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
Employee Advisor

Hi @Sanjay_Bangar ,

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