In my experience it's pretty rare for template language bugs to cause errors if user entered content includes one of their special characters. The template would have to be evaluated twice for any problems to occur - once to insert the user's template code in to placeholders within the original template , and then once again to execute the resulting combination.
I disagree! It does not make sense that submitting any text via a form input should in any way interfere with a templating engine, in the same way we dont expect to be able to affect a database by entering SQL into a form field.
The fact that Google brings back an empty result set to me indicates the problem is a bit deeper...
http://code.google.com/p/google-ctemplate/
It makes sense that the ${ could cause problems.