:%s/<\_.\{-1,\}>//g
Strip tags in a Vim buffer #
Before I forget this, here’s a simple Vim command to strip XML or HTML tags from a buffer. The expression is non-greedy and catches tags that span multiple lines.
:%s/<\_.\{-1,\}>//g
Add a new comment