You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ You can ignore any links nested inside of another link. Eg with following HTML:
51
51
</a>
52
52
```
53
53
54
-
It is okay if your code returns only the outside link, but it should still get all of the text inside the link, including the text inside the nested link.
54
+
It is okay if your code returns only the outside link.
55
55
56
56
**3. Get something working before focusing on edge-cases**
57
57
@@ -61,6 +61,13 @@ Don't worry about having perfect code. Chances are there will be a lot of edge c
61
61
62
62
I created a few simpler HTML files and included them in this repo to help with testing. They won't cover all potential use cases, but should help you start testing out your code.
63
63
64
+
65
+
**5. The fourth example will help you remove comments from your link text**
66
+
67
+
Chances are your first version will include the text from comments inside a link tag. Mine did. Use [ex4.html](ex4.html) to test that case out and fix the bug.
68
+
69
+
*Hint: See [NodeType](https://godoc.org/golang.org/x/net/html#NodeType) constants and look for the types that you can ignore.*
70
+
64
71
## Bonus
65
72
66
73
The only bonuses here are to improve your tests and edge-case coverage.
0 commit comments