How can I easily delete blocks of text surrounded by HTML tags?
Say I come across a block of text that is surrounded by <div> tags. How can I easily delete everything within the tags, and the tags themselves, all at once?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Text objects are your friends…
dat: “delete around tag”dit: “delete inside tag”There are also similar operations for changing the text (
catandcit) and selecting it visually (vatandvit).Have fun!