Deprecated HTML Tag Stripper for TextMate
Written by Jon Henshaw | Posted on April 19th, 2006
Earlier this year, Jon posted a Perl script that Scott wrote which strips out deprecated HTML tags and showed how to run this as a plugin for BBEdit. Slowly over the last few months I’ve convinced Jon to use TextMate as his text editor of choice. The one thing holding him back from fully migrating away from BBEdit was this plugin. Luckily, implementing it in TextMate is dead simple. Here’s how:
- Right-click and save this Perl script to your computer and move it into your home directory. (Or wherever you’d like it to be.)
- Open TextMate’s Bundle Editor. Window → Show Bundle Editor
- Click on HTML from the language list and then choose New Command
- Name the command “HTML Stripper”
- Type the following into the command’s text area “perl ~/htmlstripper.pl”
- Close the window – you’re finished!
Now you can run the HTML Stripper command from TextMate’s Automation menu. Choose Automation → Run Command → HTML → HTML Tag Stripper.
If you’re not familiar with TextMate’s bundle editor, here’s a screencast that shows how to do the steps above.




