apply rich text substitution to client attributes