Ah yes, the snippet came from somewhere else, cleaned it up but didn't notice the delimiter. 

The doubleEscape was a start to make double escaping configurable, but I gave up. Will remove it. 

I'll do the changes when I come home this evening.