added support for escaping tags. fixes #53