The content of the document is parsed correctly (when using [*content*]), if viewed as a page, it contains these snippets:
Uncached snippet call: [!getPrefix?main=`design`&sub=`flags`!]
Cached snippet call: [[getPrefix?main=`design`&sub=`flags`]]
Which means that it will come out like this:
Uncached snippet call: new_design/images/design/icons/flags/
Cached snippet call: new_design/images/design/icons/flags/
But when I get the content through the snippet below:
$out = $modx->documentObject['content'];
return $out;
This is the output:
Uncached snippet call: [!getPrefix?main=`design`&sub=`flags`!]
Cached snippet call: new_design/images/design/icons/flags/