I want to mention the nice feature of escaping string characters in ABAP. There is predefined function escape available with all options (HTML, XML, JS, JSON, XSS, URI, etc.) when you are using SAP_BASIS >= 731.
Calling of the function is in this format:
escaped_string = escape( val = unescaped_string format = format )
There are several use cases when you can use it such as:
There are two nice documentation sites:
This escape function should provide complex way in order to escape everything. I hope you enjoy it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
2 | |
2 |