Hi All,
I have a sightly expression like
<p>${"Welcome! to <span class='test' data-id='testId'>" @ context='html'} India</span></p> - context is 'html'
and it is rendering as
<p>Welcome! to <span class="test"></span> India</span></p> - without data-id attribute in span tag
expected output
<p>Welcome! to <span class='test' data-id='testId'> India</span></p>
But when I change the context to unsafe , same sightly is rendering as expected
<p>${"Welcome! to <span class='test' data-id='testId'>" @ context='unsafe'} India</span></p> - context is 'unsafe'
rendered as
<p>Welcome! to <span class='test' data-id='testId'> India</span></p>
I do not want to use context as unsafe, how to resolve this?
Thanks,
Radhakrishna N