I do not think Special chars are supported in this use case.
Is there any other way we can use special characters in alt text without using context as unsafe.
NOt that I am aware of. I avoid using special chars as much as possible,
1 person found this helpful
Instead of using @ context = 'unsafe', it's good to use AntiSamy configuration file in CRXDE light to handle your use-case.
We've tested your use-case and it got resolved after following the below steps:
1) Copy /libs/cq/xssprotection/config.xml to /apps/cq/xssprotection/config.xml.
2) Open /apps/cq/xssprotection/config.xml.
3) In the config.xml file, search for common-attributes and add the following target attribute declaration.
<regexp value="[a-zA-Z0-9-_\$]+" />
4) Search for the term <tag name="a" in the config.xml file.
5) Add the line below in the list of attributes:
<attribute name="title" />
6) Save the file. Now, test your use-case and the issue should be resolved.
You can also find above steps in adobe helpx docs:
Hope this helps!