Unless I am missing something, I don't think you need any sort of a special treatment for the strings in the template (escaping # symbols, etc). If you still experience troubles with this, can you prepare a small example? We will check it out and do our best to help.
All the best,
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI