Create a Macro to Strip HTML Tags from Text

You can remove everything within angle brackets using a Regular Expression search & replace, something like:

Perhaps better is to use textutil to convert the HTML to text:

pbpaste | textutil -format html -convert txt -stdin -stdout

3 Likes