code: func replaceTagWithContents(tagSelection *goquery.Selection, collapsibleAtomTypes []atom.Atom) {
  	if tagSelection.Length() == 0 {
  		return
  	}
  	node := tagSelection.Get(0)
  	node.Data = tagSelection.Text()
  	node.Type = html.TextNode
  	if node.FirstChild == nil {
  		node.Attr = []html.Attribute{}
  		node.DataAtom = 0
  		node.FirstChild = nil
  		node.LastChild = nil
  	} else {
  		// If all children are text only, the parent already contains the text, so drop them
  		collapseTextNodes(node, collapsibleAtomTypes)
  	}
  }
docs: // replaceTagWithContents removes the tag, replacing it with its text contents
  // e.g. "<em>some text</em>" becomes "some text"