Please help me encode a string to correct format using xslt.
My case is: I have a xml file which i need to convert it to JSON text, I see a lot of single quotes with in the string in xml & resulting JSON structure is not proper. how to handle this?
<line>brother's sister's</line>
Should result in a JSON something like
{"line": "brother%25s sister%25s"}
You can use recursion to replace
'to%25, e.g.: