Implementing attribute escaping