Here is how to easily strip or remove html tags from a file using sed. (View full post for proper syntax!)
sed -e 's/<[a-zA-Z\/][^>]*>//g' myfile.txt > myfilenew.txt
This will strip tags from any sort of text file (html, csv, txt).
Related posts:
Finally one that works for me! Thanks buddy.
Your email address will not be published. Required fields are marked *
Name *
Email *
Website
Comment
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Notify me of followup comments via e-mail. You can also subscribe without commenting.
Please note: JavaScript is required to post comments.
Finally one that works for me! Thanks buddy.