[ok]handle tag
(doc *goquery.Document)
| 268 | |
| 269 | //[ok]handle tag <hr/> |
| 270 | func handleHr(doc *goquery.Document) *goquery.Document { |
| 271 | doc.Find("hr").Each(func(i int, selection *goquery.Selection) { |
| 272 | selection.BeforeHtml("\n- - -\n") |
| 273 | selection.Remove() |
| 274 | }) |
| 275 | return doc |
| 276 | } |
| 277 | |
| 278 | //[ok]handle tag <img/> |
| 279 | func handleImg(doc *goquery.Document) *goquery.Document { |