Use the sed terminal command with an input file called say test.html

sed 's/<[^>]*>//g' input.html

if you want to save the output just do the following

sed 's/<[^>]*>//g' input.html > output.txt