S
S
Sergey Burduzha2022-02-12 12:26:55
vim
Sergey Burduzha, 2022-02-12 12:26:55

How to remove all html tags in vim?

There is a html file with a bunch of unnecessary tags and classes, I need to copy only the text from the tags, can I somehow do this in vim?
That is, remove the tags and leave the text.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Burduzha, 2022-02-13
@serii81

And I found a solution.
Here in this article
https://habr.com/ru/post/119059/
%s/<[^>]*>//g

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question