Hi I have a ditto call that gets titles and runs a secondary snippet on the titles before output. And I’ve found that the question mark symbol ( ? ) is stripped out and I’m wondering if there is a way to fix this.
For example this is a title of a MODx document
Coming to the conference?
Here’s my sample Ditto call
[!Ditto? &parents=`4` &tpl=`test_tpl` !]
Here’s test_tpl at first -
And it outputs the title fine: ’Coming to the conference?’
Then I created a snippet: testFunction
<?php
// testFunction
return $str;
?>
And I updated the tpl to be (noting the alternating snippet tags for embeded snippet in the tpl called by another snippet)
title - [[testFunction? &str=`[+title+]` ]]
and now it outputs this as the title:
Coming to the conference
Any thoughts?