LPS-50380 SF - escape in place of output to prevent double escaping in "data" attribute and double encoding in URL, use correct escape methods