How can I encode Javascript snippets in widget.jsp?
Hi
I use a lot of Javascript in custom components. Therefor I use custom properties that I added to the custom component's dialog.
I've found that all properties provided by the user via the component's dialog are encoded in the JSP:
name="${guide:encodeForHtmlAttr(guideField.name,xssAPI)}"com.adobe.aemds.guide.taglibs.GuideELUtils provides
but does not provide methods for other encoding recommended by https://www.owasp.org/index.php/OWASP_Java_Encoder_Project#tab=Use_the_Java_Encoder_Project How can I protect against XSS using the aem toolset? Thank you, Urs |