func extend(doc *xml.ElementNode, node xml.Node) { dup := node.Duplicate(1).(*xml.ElementNode) doc.AddChild(dup) if strings.ToLower(dup.Name()) != "p" || strings.ToLower(dup.Name()) != "div" { dup.SetName("div") } }