You need to sign in to do that
Don't have an account?
mary.tagler
What specific characters is JSENCODE handling?
I've reviewed the developer and help site documentation and they say the exact same thing:
If that's not clear, I want a detailed list.
Encodes text and merge field values for use in JavaScript by inserting escape characters, such as a backslash (\), before unsafe JavaScript characters, such as the apostrophe (').That's great, but I'd like to know which specific characters JSENCODE and JSINHTMLENCODE handle.
If that's not clear, I want a detailed list.
JSENCODE: JSINHTMLENCODE:
Check below references for more details.
https://www.infallibletechie.com/2016/12/platform-encoding-in-visualforce.html
http://jessealtman.com/2017/04/interesting-interaction-between-inlinehelptext-and-jsinhtmlencode/
https://salesforcethinkers.home.blog/2020/04/21/text-formula-operators-and-functions-in-salesforce/
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_functions.htm
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
If I have a complete list, I can hack a formula using lots of SUBSTITUTE functions if I have to.
Thanks,
* is changed to \*
\ is changed to \\
' is changed to \'
" is changed to \"
< is changed to \u003C
> is changed to \u003E