(doc *goquery.Document)
| 183 | } |
| 184 | |
| 185 | func handleBlockTag(doc *goquery.Document) *goquery.Document { |
| 186 | for _, tag := range blockTag { |
| 187 | hasTag := true |
| 188 | for hasTag { |
| 189 | if tagEle := doc.Find(tag); len(tagEle.Nodes) > 0 { |
| 190 | tagEle.Each(func(i int, selection *goquery.Selection) { |
| 191 | selection.BeforeHtml("\n" + getInnerHtml(selection) + "\n") |
| 192 | selection.Remove() |
| 193 | }) |
| 194 | } else { |
| 195 | hasTag = false |
| 196 | } |
| 197 | } |
| 198 | } |
| 199 | return doc |
| 200 | } |
| 201 | |
| 202 | //func handleBlockquote(doc *goquery.Document) *goquery.Document { |
| 203 | // if tagEle := doc.Find("blockquote"); len(tagEle.Nodes) > 0 { |
no test coverage detected