factored handle escaped and unescaped nodes
Merge pull request #120 from fleur/master

factored handle escaped and unescaped nodes