modified to handle requests with text containing '<' or '>' characters.