This is C++
Create a program that reads an HTML file and converts it toplain text.
Console:
HTML Converter
Grocery List
* Eggs
* Milk
* Butter
Specifications:
The HTML file named groceries.html contains these HTML tags:
Grocery List
When the program starts, it should read the contents of the file,remove the HTML tags, remove any spaces to the left of the tags,add asterisks (*) before the list items, and display the contentand the HTML tags on the console as shown above.
Note
The groceries.html file ends each line with a carriage returncharacter (‘\r’), not a new line character (‘\n’). To account forthat, when you read the file, you can use the third parameter ofthe getline() function to specify the end of the line. For moreinformation, you can search online and check the documentation ofthe getline() function.