7 thoughts on “Strip or Remove HTML Tags

  1. ジョーダン スニーカー

    Finally one that works for me! Thanks buddy.

  2. Mike

    Add ! to include html comments (e.g. ).

    sed -e ‘s/]*>//g’ myfile.txt > myfilenew.txt

  3. Mike

    (Comment system ate everything. Trying html symbols.)

    Add ! to include html comments (e.g. <!– some comment –>).

    sed -e ‘s/<[a-zA-Z\/][^>]*<//g’ myfile.txt > myfilenew.txt


Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.