Handle XML escaping of template tags in renderString