阅读WebPages并导出特定数据

Using c++ have to read a specific data from a webpage (a soccer player page), and i want to create a file with all the player with their team. first of all i import all page code with CURL into a file.txt, than, after i read file.txt i sent all the content in a string. Now i have to split all the name and their specific team. How can i split it? i have to delete all HTML/PHP tags.

(example: <'p name""> Ronaldo <\p> ---> Ronaldo) Can anyone help me please?

Sorry for my bad english.

Thank you in advice.