update escape rule for xtemplate.Fixes #526
update escape rule