I need to get the HTML contents between a pair of given tags using a bash script. As an example, having the HTML code below:
plain text processing is not good for html/xml parsing. I hope this could give you some idea:
kent$ xmllint --xpath "//body" f.html text text2 text3