add escape_tags option to enable/disable escaping tag names and attributes