nodeText returns the text contained in n and its descendants.
(n *html.Node)
| 137 | |
| 138 | // nodeText returns the text contained in n and its descendants. |
| 139 | func nodeText(n *html.Node) string { |
| 140 | var b bytes.Buffer |
| 141 | writeNodeText(n, &b) |
| 142 | return b.String() |
| 143 | } |
| 144 | |
| 145 | // nodeOwnText returns the contents of the text nodes that are direct |
| 146 | // children of n. |
no test coverage detected