I need to encrypt a value contained in an html div when a user clicks on a button.
In order to do this, I'm calling my custom encryption function from a java plugin inside the javascript onClick() code. The java plugin is a server-side package containing classes of functions that can be called inside the client-side code.
The problem is than my custom function can only take a hardcoded string as parameter :
${fn:myCustomFunc("myString")}
encrypts the string myString${fn:myCustomFunc(myStringVariable)}
doesn't encrypt the string contained inside myStringVariable.
Is there a way, inside my java function, to scan the current page to get the inner html of the element I need ?