After parsing a document using html.Parse(r io.Reader)
we get a node tree. Each DOM node provides it's surroundings, the name of the tag and that tag's attributes. See here.
What's the best way to go from a node object to the string text of that node in the file r
, as well as the line number of that tag within that file?
The html package does not record that information, so it is not available.