First of all welcome to www.go4expert.com

This can be done by just parsing the character array that contains the output. Search for < and move from the next character till the > if you find matching < and > remove discard the string.