Strip HTML code

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
Tags: #html #perl
Share your thoughts

💬 Feel free to leave your comments

Share your thoughts below!

Loading comments...