How to remove child nodes in goquery? I'm trying 3 different ways to remove child nodes in my sample code, https://github.com/suntong/kuaizh/blob/master/crawler/kijiji.go as I can't quite figure it out from the doc:
titleHtml, _ = title.RemoveFiltered("a").Html() locationHtml, _ = location.RemoveClass("date-posted").Html() descriptionHtml, _ = description.Find("div").Remove().Html() However, none of them is what I'm expecting. Basically all three contains sub nodes that I want to remove, and I want the end result to be the html without the removed nodes. Check out the full source code, or its execution result for details. Thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.