modified to handle request attribute with text containing the characters '<' and '>'