I have some code that includes in it a javascript array of latitude and longitude points. As a result I get code like this:
[[-32.77638,151.33979],[-32.72544,151.32582],[-32.73685,151.30053],[-32.73953,151.2627],[-32.77255,151.30316],[-32.8076,151.28101]]
modx sees this as a snippet call for a snippet called:
-32.77638,151.33979],[-32.72544,151.32582],[-32.73685,151.30053],[-32.73953,151.2627],[-32.77255,151.30316],[-32.8076,151.28101
and hence it all gets stripped out.
I can’t see any way of escaping the snippet replacement of the [[ ]] and content in between.
It is not an option to have the array present as:
([-32.77638,151.33979],[-32.72544,151.32582],[-32.73685,151.30053],[-32.73953,151.2627],[-32.77255,151.30316],[-32.8076,151.28101])
as it is passing to a hosted 3rd party application so I have to pass in the format they use.
How do I go about not having the array parsed into a snippet call? (have tried the ` escape character but that then passes as `[[ or [`[ which of course breaks the call to the remotely hosted app.
Thanks.