escape the ">" character as well