I have the following xslt to transform data into a JQuery-accepted format. However, because JSON doesn\'t accept double quotes in the data string, I need to replace \" with
Add this template to your code:
\"
Then change:
to:
Your complete transformation now becomes:
],
]
[
{
"aaData": [
] }
,
"
yyyy-MM-dd HH:mm:ss
Y
N
\"
when this transformation is applied on the provided XML document:
test_data
test_quo"te
test_data
the wanted, correct result is produced:
{ "aaData": [["test_data","test_quo\"te","test_data"]] }