Our company has encountered an issue with an FTL that involves a link with JavaScript functionality. The problem arises when the value contains an apostrophe, causing the link to break. To address this, we utilized the js_string method to solve the issue. However, we had to modify the quotes surrounding the expression from double to single quotes, as double quotes did not work in this scenario.
Question: Is there a way to resolve this issue while keeping the original double quotes around the expression?
For instance, can we use the following format?
<a href='javascript:func("${event.title?js_string}");'>Link</a>
Please note that the above solution does not work as intended.