Enhancement
A TLScript function is required that performs secure XML encoding for strings. This function should convert potentially dangerous XML characters into their corresponding XML entities to prevent XML injection.
Technical details:
- Function should convert characters such as <, >, & into their XML entities (<, >, &)
- Input: any string
- Output: XML-encoded string
- Implementation is based on TagUtil.encodeXML
- Enable use in the context of TLScript
Example: Input: "User entered <script>bad code</script>" Output: "User entered <script >bad code</script>"