I get HTML and Javascript data by CURL in one of snippets. Data are corrputed because MODx cut all inside double brackets (Json data). What can I do? Is any way to modify (str_replace [[ to [ [) CURL data before display?
MODx will always interpret [[...]] as a tag and replace it with nothing if the tag is not valid.
I think this would be a better solution, but you’d have to be careful when and where you do it or MODx won’t process the real tags:
$output = str_replace(array('[',']'),array('[',']'),$output);